Part Number Hot Search : 
5029MP URF1660 P5NB100 W77IC32 91ER50LF NHSW064 N5253 TK15407
Product Description
Full Text Search
 

To Download ATXMEGA192D3 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  features ? high-performance, low-power 8/16-bit atmel ? avr ? xmega tm microcontroller ? non-volatile program and data memories ? 64k - 256k bytes of in-system self-programmable flash ? 4k - 8k bytes boot code section with independent lock bits ? 2k - 4k bytes eeprom ? 4k - 16k bytes internal sram ? peripheral features ? four-channel event system ? five 16-bit timer/counters four timer/counters with 4 output compare or input capture channels one timer/counters with 2 output compare or input capture channels high resolution extensions on two timer/counters advanced waveform extension on one timer/counter ?three usarts irda extension on 1 usart ? two two-wire interfaces with dual address match(i 2 c and smbus compatible) ? two spi (serial peripheral interfaces) ? 16-bit real time counter with separate oscillator ? one sixteen-channel, 12-bit, 200ks ps analog to digital converter ? two analog comparators wi th window co mpare function ? external interrupts on a ll general purpose i/o pins ? programmable watchdog timer with sepa rate on-chip ultra low power oscillator ? special microcontroller features ? power-on reset and programmable brown-out detection ? internal and external clock options with pll ? programmable multi-level interrupt controller ? sleep modes: idle, power-down, stan dby, power-save, extended standby ? advanced programming, test and debugging interface pdi (program and debug interface) fo r programming, test and debugging ? i/o and packages ? 50 programmable i/o lines ? 64-lead tqfp ? 64-pad qfn ? operating voltage ? 1.6 ? 3.6v ? speed performance ? 0 ? 12 mhz @ 1.6 ? 3.6v ? 0 ? 32 mhz @ 2.7 ? 3.6v typical applications ? industrial control ? climate control ? hand-held battery applications ? factory automation ? zigbee ? power tools ? building control ? motor control ? hvac ? board control ? networking ? metering ? white goods ? optical ? medical applications 8/16-bit xmega d3 microcontroller atxmega256d3 ATXMEGA192D3 atxmega128d3 atxmega64d3 8134i?avr?12/10
2 8134i?avr?12/10 xmega d3 1. ordering information notes: 1. this device can also be supplied in wafer form. please contact your local atmel sales office for detailed ordering info rmation. 2. pb-free packaging, complies to the european directive for restriction of hazardous substances (rohs directive). also halide f ree and fully green. 3. for packaging information, see ?packaging information? on page 86 . ordering code flash (b) e 2 (b) sram (b) speed (mhz) power supply package (1)(2)(3) temp atxmega256d3-au 256k + 8k 4k 16k 32 1.6 - 3.6v 64a -40 - 85 c ATXMEGA192D3-au 192k + 8k 2k 16k 32 1.6 - 3.6v atxmega128d3-au 128k + 8k 2k 8k 32 1.6 - 3.6v atxmega64d3-au 64k + 4k 2k 4k 32 1.6 - 3.6v atxmega256d3-mh 256k + 8k 4k 16k 32 1.6 - 3.6v 64m2 ATXMEGA192D3-mh 192k + 8k 2k 16k 32 1.6 - 3.6v atxmega128d3-mh 128k + 8k 2k 8k 32 1.6 - 3.6v atxmega64d3-mh 64k + 4k 2k 4k 32 1.6 - 3.6v package type 64a 64-lead, 14 x 14 mm body size, 1.0 mm body thickness, 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) 64m2 64-pad, 9 x 9 x 1.0 mm body, lead pitch 0.50 mm, 7.65 mm exposed pad, quad flat no-lead package (qfn)
3 8134i?avr?12/10 xmega d3 2. pinout/ block diagram figure 2-1. block diagram and pinout notes: 1. for full details on pinout and alternate pin functions refer to ?pinout and pin functions? on page 46 . 2. the large center pad underneath the qfn/mlf package shou ld be soldered to ground on the board to ensure good mechanical stability. i n dex cor n er 17 1 8 19 20 21 22 23 24 25 26 27 2 8 29 30 31 32 64 63 62 61 60 59 5 8 57 56 55 54 53 52 51 50 49 4 8 47 46 45 44 43 42 41 40 39 3 8 37 36 35 34 33 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 pf2 pf1 pf0 v cc g n d pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 v cc g n d pd7 pa 3 pa 4 pa 5 pa 6 pa 7 pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 g n d v cc pc0 pc1 pc2 pc3 pc4 pc5 pc6 pc7 g n d v cc pd0 pd1 pd2 pd3 pd4 pd5 pd6 pa 2 pa 1 pa 0 a v cc g n d pr1 pr0 reset/pdi pdi pf7 pf6 v cc g n d pf5 pf4 pf3 flash ram e 2 prom interr u pt controller ocd adc a ac a0 ac a1 port a port b e v ent system ctrl port r po w er control reset control watchdog osc/clk control bod por rtc e v e n t routi n g n etwork data bus data bu s v ref temp port c port d port e port f cpu t/c0:1 usart0 spi twi t/c0 usart0 spi t/c0 usart0 t/c0 twi
4 8134i?avr?12/10 xmega d3 3. overview the atmel ? avr ? xmega d3 is a family of low power, high performance and peripheral rich cmos 8/16-bit microcontrollers based on the avr ? enhanced risc architecture. by execug powerful instructions in a single clock cycle, the xmega d3 achieves throughputs approaching 1 million instructions per second (mips) per mhz allowing the system designer to optimize power consumption versus processing speed. the avr cpu combines a rich instruction set with 32 general purpose working registers. all the 32 registers are directly connected to the arithmetic logic unit (alu), allowing two independent registers to be accessed in one single instructi on, executed in one clock cycle. the resulting architecture is more code efficient while achi eving throughputs many times faster than conven- tional single-accumula tor or cisc based microcontrollers. the xmega d3 devices provide the following features: in-system programmable flash with read- w hile- w rite capabilities, internal eeprom and sram, four-channel event system, pro- grammable multi-level interrupt controller, 50 general purpose i/o lines, 16-bit real time counter (rtc), five flexible 16-bit timer/counters with compare modes and p w m, three usarts, two two- w ire interface (t w is), two serial peripheral interfaces (spis), one 16-chan- nel 12-bit adc with optional di fferential input with programmable gain, two analog comparators with window mode, programmable w atchdog timer with separate internal oscillator, accurate internal oscillators with pll and presca ler and programmable brown-out detection. the program and debug interface (pdi), a fast 2-pin interface for programming and debugging, is available. the xmega d3 devices have five software selectable power saving modes. the idle mode stops the cpu while allowing the sram, event sy stem, interrupt controller and all peripherals to continue functioning. the power-down mode saves the sram and register contents but stops the oscillators, disabling all other functions until the next t w i or pin-change interrupt, or reset. in power-save mode, the asynchronous real time counter continues to run, allowing the appli- cation to maintain a timer base while the rest of the device is sleeping. in standby mode, the crystal/resonator oscillator is kept running whil e the rest of the device is sleeping. this allows very fast start-up from external crystal combined with low power consumption. in extended standby mode, both the main os cillator and the asynch ronous timer continue to run. to further reduce power consumption, the peripheral clock for each individual peripheral can optionally be stopped in active mode and idle sleep mode. the device is manufactured using atmel's high-density nonvolatile memory technology. the pro- gram flash memory can be reprogrammed in-sys tem through the pdi. a bootloader running in the device can use any interface to download the application program to the flash memory. the bootloader software in the boot flash section will continue to run while the application flash section is updated, providing true read- w hile- w rite operation. by combining an 8/16-bit risc cpu with in-system self-programmable flash, the atmel xmega d3 is a powerful microcon- troller family that provides a highly flexible and cost effective solution for many embedded applications. the xmega d3 devices are supported with a full suite of program and system development tools including: c compilers, macro assemblers, program debugger/simulators, programmers, and evaluation kits.
5 8134i?avr?12/10 xmega d3 3.1 block diagram figure 3-1. xmega d3 block diagram power supervision por/bod & reset port a (8) port b (8) bus controller sram adca aca ocd pdi cpu pa[0..7] pb[0..7] watchdog timer watchdog oscillator interrupt controller data bus prog/debug controller vcc gnd port r (2) xtal1 xtal2 pr[0..1] oscillator circuits/ clock generation oscillator control real time counter event system controller pdi_data reset/ pdi_clk sleep controller flash eeprom nvm controller ircom port c (8) pc[0..7] tcc0:1 usartc0:1 twic spic pd[0..7] pe[0..7] port d (8) tcd0:1 usartd0:1 spid tce0:1 usarte0:1 int. refs. arefa arefb tempref vcc/10 tosc1 tosc2 to clock generator tcf0 usartf0 port f (8) pf[0..7] event routing network data bus port e (8) twie
6 8134i?avr?12/10 xmega d3 4. resources a comprehensive set of development tools, app lication notes and datasheets are available for download on http:// www.atmel.com/avr. 4.1 recommended reading ?atmel ? avr ? xmega tm d manual ? xmega application notes this device data sheet only contains part specific information and a short description of each peripheral and module. the xmega d manual describes the modules and peripherals in depth. the xmega application notes contain example code and show applied use of the modules and peripherals. the xmega manual and application notes are available from http://www.atmel.com/avr. 5. disclaimer for devices that are not available yet, typica l values contained in this datasheet are based on simulations and characterization of other av r xmega microcontrollers manufactured on the same process technology. min. and max val ues will be available after the device is characterized.
7 8134i?avr?12/10 xmega d3 6. avr cpu 6.1 features ? 8/16-bit high performan ce avr risc architecture ? 138 instructions ? hardware multiplier ? 32x8-bit registers directly connected to the alu ? stack in ram ? stack pointer accessible in i/o memory space ? direct addressing of up to 16m bytes of program and data memory ? true 16/24-bit access to 16/24-bit i/o registers ? support for 8-, 16- and 32-bit arithmetic ? configuration change protection of system critical features 6.2 overview the atmel ? avr ? xmega tm d3 uses the 8/16-bit avr cpu. the main function of the avr cpu is to ensure correct program execution. the cpu must therefore be able to access memories, perform calculations and control peripherals. interrupt handling is described in a separate sec- tion. figure 6-1 on page 7 shows the cpu block diagram. figure 6-1. cpu block diagram the avr uses a harvard architecture - with separate memories and buses for program and data. instructions in the program memory are executed with a single level pipeline. w hile one instruction is being executed, the next instruction is pre-fetched from the program memory. flash program memory instruction decode program counter ocd 32 x 8 general purpose registers alu multiplier/ des instruction register status/ control peripheral module 1 peripheral module 2 eeprom pmic sram data bus data bus
8 8134i?avr?12/10 xmega d3 this concept enables instructions to be executed in every clock cycle. the program memory is in-system re-programmable flash memory. 6.3 register file the fast-access register file contains 32 x 8-bit general purpose working registers with a single clock cycle access time. this allows single-cycle ar ithmetic logic unit (alu ) operation. in a typ- ical alu operation, two operands are output from the register file, the operation is executed, and the result is stored back in the register file - in one clock cycle. six of the 32 registers can be used as three 16-b it indirect address register pointers for data space addressing - enabling efficient address calculations. one of these address pointers can also be used as an address pointer for look up tables in flash program memory. 6.4 alu - arithmetic logic unit the high performance arithmetic logic unit (a lu) supports arithmetic and logic operations between registers or between a constant and a regi ster. single register operations can also be executed. w ithin a single clock cycle, arithmetic operations between general purpose registers or between a register and an immediate are executed. after an arithmetic or logic operation, the status register is updated to reflect information about the result of the operation. the alu operations are divided into three main categories ? arithmetic, logical, and bit-func- tions. both 8- and 16-bit arithmetic is supported, and the instruction set allows for easy implementation of 32-bit arithmetic. the alu also provides a powerful multiplier supporting both signed and unsigned multiplication and fractional format. 6.5 program flow w hen the device is powered on, the cpu starts to execute instructions from the lowest address in the flash program memory ?0?. the program counter (pc) addresses the next instruction to be fetched. after a reset, the pc is set to location ?0?. program flow is provided by conditional and unconditional jump and call instructions, capable of addressing the whole address space directly. most avr instructions use a 16-bit word format, while a limited number uses a 32-bit format. during interrupts and subroutine calls, the return address pc is stored on the stack. the stack is effectively allocated in the general data sram, and consequently the stack size is only limited by the total sram size and the usage of the sr am. after reset the stack pointer (sp) points to the highest address in the internal sram. the sp is read/write accessible in the i/o memory space, enabling easy implementation of multiple stacks or stack areas. the data sram can easily be accessed through the five different addressing modes supported in the avr cpu.
9 8134i?avr?12/10 xmega d3 7. memories 7.1 features ? flash program memory ? one linear address space ? in-system programmable ? self-programming and bootloader support ? application section for application code ? application table section for application code or data storage ? boot section for application code or bootloader code ? separate lock bits and protection for all sections ? data memory ? one linear address space ? single cycle access from cpu ? sram ? eeprom byte and page accessible optional memory mapping for direct load and store ? i/o memory configuration and status register s for all peripherals and modules 16 bit-accessible general purpose regi ster for global variables or flags ? production signature row memory for factory programmed data device id for each microcontroller device type serial number for each device oscillator calibration bytes adc and temperature sensor calibration data ? user signature row one flash page in size can be read and written from software content is kept after chip erase 7.2 overview the avr architecture has two main memory s paces, the program memory and the data mem- ory. in addition, the xmega d3 features an eeprom memory for no n-volatile data storage. all three memory spaces are linear and require no paging. the available me mory size configura- tions are shown in ?ordering information? on page 2 . in addition each device has a flash memory signature row for calibration data, device identification, serial number etc. non-volatile memory spaces can be locked for further write or read/write operations. this pre- vents unrestricted access to the application software. 7.3 in-system programmable flash program memory the xmega d3 devices contains on-chip in-s ystem programmable flash memory for program storage, see figure 7-1 on page 10 . since all avr instructions are 16- or 32-bits wide, each flash address location is 16 bits. the program flash memory space is divided into application and boot sections. both sections have dedicated lock bits for setting restrictions on write or read/write operations. the store pro-
10 8134i?avr?12/10 xmega d3 gram memory (spm) instruction must reside in the boot section when used to write to the flash memory. a third section inside the applicat ion section is referred to as the application table section which has separate lock bits for storage of write or read/write protection. the application table sec- tion can be used for storing non-volatile data or application software. the application table section and boot sect ion can also be used for general application software. figure 7-1. flash program memory (hexadecimal address) word address 0 application section (256k/192k/128k/64k) ... 1efff / 16fff / efff / 77ff 1f000 / 17000 / f000 / 7800 application table section (8k/8k/8k/4k) 1ffff / 17fff / ffff / 7fff 20000 / 18000 / 10000 / 8000 boot section (8k/8k/8k/4k) 20fff / 18fff / 10fff / 87ff
11 8134i?avr?12/10 xmega d3 7.4 data memory the data memory consist of the i/o memory, eeprom and sram memories, all within one lin- ear address space, see figure 7-2 on page 11 . to simplify development, the memory map for all devices in the family is identical and with empt y, reserved memory space for smaller devices. figure 7-2. data memory map (hexadecimal address) byte address ATXMEGA192D3 byte address atxmega128d3 byte address atxmega64d3 0 i/o registers (4kb) 0 i/o registers (4kb) 0 i/o registers (4kb) fff fff fff 1000 eeprom (2k) 1000 eeprom (2k) 1000 eeprom (2k) 17ff 17ff 17ff reserved reserved reserved 2000 internal sram (16k) 2000 internal sram (8k) 2000 internal sram (4k) 5fff 3fff 2fff byte address atxmega256d3 0 i/o registers (4kb) fff 1000 eeprom (4k) 1fff 2000 internal sram (16k) 5fff
12 8134i?avr?12/10 xmega d3 7.4.1 i/o memory all peripherals and modules are addressable through i/o memory locations in the data memory space. all i/o memory locations can be accessed by the load (ld/lds/ldd) and store (st/sts/std) instructions, transferring data between the 32 general purpose registers in the cpu and the i/o memory. the in and out instructions can address i/o memory locations in the range 0x00 - 0x3f directly. i/o registers within the address range 0x00 - 0x1f are directly bit-acce ssible using the sbi and cbi instructions. the value of single bits can be checked by using the sbis and sbic instruc- tions on these registers. the i/o memory address for all peripherals and modules in xmega d3 is shown in the ?periph- eral module address map? on page 51 . 7.4.2 sram data memory the xmega d3 devices have internal sram memory for data storage. 7.4.3 eeprom data memory the xmega d3 devices have internal eeprom me mory for non-volatile data storage. it is addressable either in a separate data space or it can be memory mapped into the normal data memory space. the eeprom memory supports both byte and page access.
13 8134i?avr?12/10 xmega d3 7.5 production signature row the production signature row is a separate memory section for factory programmed data. it contains calibration data for functions such as oscillators and analog modules. the production signature row also contains a dev ice id that identify each microcontroller device type, and a serial number that is unique for each manufactured device. the device id for the available xmega d3 devices is shown in table 7-1 on page 13 . the serial number consist of the production lot number, wafer number, and wafer coordinates for the device. the production signature row can not be written or erased, but it can be read from both applica- tion software and external programming. table 7-1. device id bytes for xmega d3 devices. 7.6 user signature row the user signature row is a separate memory section that is fully accessible (read and write) from application software and external programming. the user signature row is one flash page in size, and is meant for static user parameter storage, such as calibration data, custom serial numbers or identification numbers, random number seeds etc. this section is not erased by chip erase commands that erase the flash, and requires a dedicated erase command. this ensures parameter storage during multiple program/erase session and on-chip debug sessions. device device id bytes byte 2 byte 1 byte 0 atxmega64d3 4a 96 1e atxmega128d3 48 97 1e ATXMEGA192D3 49 97 1e atxmega256d3 44 98 1e
14 8134i?avr?12/10 xmega d3 7.7 flash and eeprom page size the flash program memory and eeprom data me mory is organized in pages. the pages are word accessible for the flash and byte accessible for the eeprom. table 7-2 on page 14 shows the flash program memory organization. flash write and erase operations are performed on one page at the time, while reading the flash is done one byte at the time. for flash access the z-pointer (z[m:n]) is used for addressing. the most significant bits in the address (fpage) gives the page nu mber and the least significant address bits (f w ord) gives the word in the page. table 7-2. number of words and pages in the flash. table 7-3 on page 14 shows eeprom memory organizat ion for the xmega d3 devices. eeeprom write and erase operation s can be performed on e page or one byte at the time, while reading the eeprom is done one byte at the time. for eeprom access the nvm address register (addr[m:n] is used for addressing. the most significant bits in the address (e2page) gives the page number and the least significant add ress bits (e2byte) gives the byte in the page. table 7-3. number of bytes and pages in the eeprom. devices flash page size fword fpage application boot size (bytes) (words) size no of pages size no of pages atxmega64d3 64k + 4k 128 z[7:1] z[16:8] 64k 256 4k 16 atxmega128d3 128k + 8k 256 z[8:1] z[17:9] 128k 256 8k 16 ATXMEGA192D3 192k + 8k 256 z[8:1] z[18:9] 192k 384 8k 16 atxmega256d3 256k + 8k 256 z[8:1] z[18:9] 256k 512 8k 16 devices eeprom page size e2byte e2page no of pages size (bytes) (bytes) atxmega64d3 2k 32 addr[4:0] addr[10:5] 64 atxmega128d3 2k 32 addr[4:0] addr[10:5] 64 ATXMEGA192D3 2k 32 addr[4:0] addr[10:5] 64 atxmega256d3 4k 32 addr[4:0] addr[11:5] 128
15 8134i?avr?12/10 xmega d3 8. event system 8.1 features ? inter-peripheral communication and signalling with minimum latency ? cpu independent operation ? 4 event channels allows for up to 4 signals to be rout ed at the same time ? events can be generated by ? timer/counters (tcxn) ? real time counter (rtc) ? analog to digital converters (adc) ? analog comparators (ac) ? ports (portx) ? system clock (clk sys ) ? software (cpu) ? events can be used by ? timer/counters (tcxn) ? analog to digital converters (adc) ? ports (portx) ? ir communication module (ircom) ? the same event can be used by multip le peripherals for synchronized timing ? advanced features ? manual event generati on from software (cpu) ? quadrature decoding ? digital filtering ? functions in active and idle mode 8.2 overview the event system is a set of features for inter-peripheral communication. it enables the possibil- ity for a change of state in one peripheral to automatically trigger actions in one or more peripherals. w hat changes in a periph eral that will trigger actions in other peripherals are config- urable by software. it is a simple, but powerful system as it allows for autonomous control of peripherals without any use of interrupts or cpu resources. the indication of a change in a peripheral is re ferred to as an event, and is usually the same as the interrupt conditions for that peripheral. events are passed between peripherals using a dedi- cated routing network called the event routing network. figure 8-1 on page 16 shows a basic block diagram of the event system with the event routing network and the peripherals to which it is connected. this highly flexible system can be used for simple routing of signals, pin func- tions or for sequencing of events. the maximum latency is two cpu clock cycles from when an event is generated in one periph- eral, until the actions are triggered in one or more other peripherals. the event system is functional in both active and idle modes.
16 8134i?avr?12/10 xmega d3 figure 8-1. event system block diagram. the event routing network can directly connect together adcs, analog comparators (ac), i/o ports (portx), the real-time counter (rtc ), timer/counters (t/c) and the ir communica- tion module (ircom). events can also be generated from software (cpu). all events from all peripherals are always routed into the event routing network. this consist of four multiplexers where each can be configured in software to select which event to be routed into that event channel. all four event channels are connected to the peripherals that can use events, and each of these peripherals can be co nfigured to use events from one or more event channels to automatically trigger a software selectable action. adcx event routing network portx cpu acx rtc t/cxn ircom clk sys
17 8134i?avr?12/10 xmega d3 9. system clock and clock options 9.1 features ? fast start-up time ? safe run-time clock switching ? internal oscillators: ? 32 mhz run-time cal ibrated rc oscillator ? 2 mhz run-time calibrated rc oscillator ? 32.768 khz calibrated rc oscillator ? 32 khz ultra low power (ulp) oscillator ? external clock options ? 0.4 - 16 mhz crystal oscillator ? 32.768 khz crystal oscillator ? external clock ? pll with internal and external clock options with 2 to 31x multiplication ? clock prescalers with 2 to 2048x division ? fast peripheral clock running at 2 and 4 times the cpu clock speed ? automatic run-time calibration of internal oscillators ? crystal oscillator failure detection 9.2 overview xmega d3 has an advanced clock system, supporting a large number of clock sources. it incor- porates both int egrated oscillators, external crystal osc illators and resonators . a high frequency phase locked loop (pll) and clock prescalers can be controlled from software to generate a wide range of clock frequencies from the clock source input. it is possible to switch between clock sources from software during run-time. after reset the device will always start up running fr om the 2 mhz inte rnal oscillator. a calibration feature is available, and can be used for automatic run-time calibration of the inter- nal 2 mhz and 32 mhz oscillators . this reduce frequency drift over voltage and temperature. a crystal oscillator failure m onitor can be enabled to issue a non-maskable interrupt and switch to internal oscillator if the external oscillator fails. figure 9-1 on page 18 shows the princi- pal clock system in xmega d3.
18 8134i?avr?12/10 xmega d3 figure 9-1. clock system overview each clock source is briefly described in th e following sub-sections. 9.3 clock options 9.3.1 32 khz ultra low power internal oscillator the 32 khz ultra low power (ulp) internal oscillator is a very low power consumption clock source. it is used for the w atchdog timer, brown-out detecti on and as an asynchronous clock source for the real time counter. this oscill ator cannot be used as the system clock source, and it cannot be directly controlled from software. 9.3.2 32.768 khz calibrated internal oscillator the 32.768 khz calibrated internal oscillator is a high accuracy clock source that can be used as the system clock source or as an asynchronous clock source for the real time counter. it is calibrated during production to provide a default frequency which is close to its nominal frequency. 32 mhz run-time calibrated internal oscillator 32 khz ulp internal oscillator 32.768 khz calibrated internal oscillator 32.768 khz crystal oscillator 0.4 - 16 mhz crystal oscillator 2 mhz run-time calibrated internal oscillator external clock input clock control unit with pll and prescaler wdt/bod clk ulp rtc clk rtc evsys peripherals adc ports ... clk per interrupt ram nvm memory flash eeprom cpu clk cpu
19 8134i?avr?12/10 xmega d3 9.3.3 32.768 khz crystal oscillator the 32.768 khz crystal oscillator is a low power driver for an external watch crystal. it can be used as system clock source or as asynchrono us clock source for the real time counter. 9.3.4 0.4 - 16 mhz crystal oscillator the 0.4 - 16 mhz crystal oscillator is a driver in tended for driving both external resonators and crystals ranging from 400 khz to 16 mhz. 9.3.5 2 mhz run-time calibrated internal oscillator the 2 mhz run-time calibrated internal oscillato r is a high frequency oscillator. it is calibrated during production to provide a def ault frequency which is close to its nominal frequency. the oscillator can use the 32.768 khz calibrated inter nal oscillator or the 32 khz crystal oscillator as a source for calibrating the frequency run-time to compensate for temperature and voltage drift hereby optimizing the accuracy of the oscillator. 9.3.6 32 mhz run-time calibrated internal oscillator the 32 mhz run-time calibrated inte rnal oscillator is a high frequen cy oscillator. it is calibrated during production to provide a def ault frequency which is close to its nominal frequency. the oscillator can use the 32.768 khz calibrated inter nal oscillator or the 32 khz crystal oscillator as a source for calibrating the frequency run-time to compensate for temperature and voltage drift hereby optimizing the accuracy of the oscillator. 9.3.7 external clock input the external clock input gives the possibility to connect a clock from an external source. 9.3.8 pll with multiplication factor 2 - 31x the pll provides the possibility of multiplying a frequency by any number from 2 to 31. in com- bination with the prescalers, this gives a wide range of output frequencies from all clock sources.
20 8134i?avr?12/10 xmega d3 10. power management and sleep modes 10.1 features ? 5 sleep modes ?idle ? power-down ?power-save ?standby ? extended standby ? power reduction registers to disable clocks to unused peripherals 10.2 overview the xmega d3 provides various sleep modes tailored to reduce power consumption to a mini- mum. all sleep modes are available and can be entered from active mode. in active mode the cpu is executing application code. the applicat ion code decides when and what sleep mode to enter. interrupts from enabled peripherals and all enabled reset sources can restore the micro- controller from sleep to active mode. in addition, power reduction registers provide a method to stop the clock to individual peripher- als from software. w hen this is done, the current state of the peripheral is frozen and there is no power consumption from that peripheral. this reduces the power consumption in active mode and idle sleep mode. 10.3 sleep modes 10.3.1 idle mode in idle mode the cpu and non-volatile memory are stopped, but all peripherals including the interrupt controller and event system are kept running. interrupt requests from all enabled inter- rupts will wake the device. 10.3.2 power-down mode in power-down mode all system clock sources, and the asynchronous real time counter (rtc) clock source, are stopped. this allows operatio n of asynchronous modules only. the only inter- rupts that can wake up the mcu are the two w ire interface address match interrupts, and asynchronous port interrupts, e.g pin change. 10.3.3 power-save mode power-save mode is identical to power-down, with one exception: if the rtc is enabled, it will keep running during sleep and the device can also wake up from rtc interrupts. 10.3.4 standby mode standby mode is identical to power-down with the exception that all enabled system clock sources are kept running, while the cpu, periph eral and rtc clocks are stopped. this reduces the wake-up time when external crystals or resonators are used.
21 8134i?avr?12/10 xmega d3 10.3.5 extended standby mode extended standby mode is identical to power-sav e mode with the exception that all enabled system clock sources are kept ru nning while the cpu and periph eral clocks are stopped. this reduces the wake-up time when external crystals or resonators are used.
22 8134i?avr?12/10 xmega d3 11. system control and reset 11.1 features ? multiple reset sources for safe operation and device reset ? power-on reset ? external reset ? watchdog reset the watchdog timer runs from separate, dedica ted oscillator ? brown-out reset accurate, programmable brown-out levels ? pdi reset ? software reset ? asynchronous reset ? no running clock in the device is required for reset ? reset status register 11.2 resetting the avr during reset, all i/o registers are set to their initial values. the sram content is not reset. appli- cation execution starts from the reset vector. the instruction placed at the reset vector should be an absolute jump (jmp) instruction to the reset handling routine. by default the reset vector address is the lowest flash program memory address, ?0?, but it is possible to move the reset vector to the first address in the boot section. the i/o ports of the avr are immediately tri-stated when a reset source goes active. the reset functionality is asynchronous, so no running clock is required to reset the device. after the device is reset, the reset source can be determined by the application by reading the reset status register. 11.3 reset sources 11.3.1 power-on reset the mcu is reset when the supp ly voltage vcc is below the po wer-on reset threshold voltage. 11.3.2 external reset the mcu is reset when a low leve l is present on the reset pin. 11.3.3 watchdog reset the mcu is reset when the w atchdog timer period expires and the w atchdog reset is enabled. the w atchdog timer runs from a dedicated oscillator independent of the system clock. for more details see ? w dt - w atchdog timer? on page 23 . 11.3.4 brown-out reset the mcu is reset when the supply voltage vcc is below the brown-out reset threshold voltage and the brown-out detector is enabled. the brown-out threshold voltage is programmable. 11.3.5 pdi reset the mcu can be reset through the program and debug interface (pdi).
23 8134i?avr?12/10 xmega d3 11.3.6 software reset the mcu can be reset by the cpu writing to a special i/o register through a timed sequence. 12. wdt - watchdog timer 12.1 features ? 11 selectable timeout periods, from 8 ms to 8s. ? two operation modes ? standard mode ? window mode ? runs from the 1 khz output of th e 32 khz ultra low power oscillator ? configuration lock to prevent unwanted changes 12.2 overview the xmega d3 has a w atchdog timer ( w dt). the w dt will run continuously when turned on and if the w atchdog timer is not reset within a software configurable time-out period, the micro- controller will be reset. the w atchdog reset ( w dr) instruction must be ru n by software to reset the w dt, and prevent microcontroller reset. the w dt has a w indow mode. in this mode the w dr instruction must be run within a specified period called a window. application software can set the minimum and maximum limits for this window. if the w dr instruction is not executed inside t he window limits, the microcontroller will be reset. a protection mechanism using a timed write se quence is implemented in order to prevent unwanted enabling, disabling or change of w dt settings. for maximum safety, the w dt also has an always-on mode. this mode is enabled by program- ming a fuse. in always-on mode, application software can not disable the w dt.
24 8134i?avr?12/10 xmega d3 13. pmic - programmable mult i-level interrupt controller 13.1 features ? separate interrupt vector for each interrupt ? short, predictable in terrupt response time ? programmable multi-level interrupt controller ? 3 programmable interrupt levels ? selectable priority scheme within low level interrupts (round-robin or fixed) ? non-maskable interrupts (nmi) ? interrupt vectors can be moved to the start of the boot section 13.2 overview xmega d3 has a programmable multi-level interrupt controller (pmic). all peripherals can define three different priority levels for interrupts; high, medium or low. medium level interrupts may interrupt low level interrupt service routines. high level interrupts may interrupt both low- and medium level interrupt service routines. low level interrupts have an optional round robin scheme to make sure all interrupts are serviced within a certain amount of time. the built in oscillator failure detection mechanism can issue a non-maskable interrupt (nmi). 13.3 interrupt vectors w hen an interrupt is serviced, t he program counter will ju mp to the interrupt vector address. the interrupt vector is the sum of the peripheral?s base interrupt address and the offset address for specific interrupts in each peripheral. the base addresses for the xmega d3 devices are shown in table 13-1 . offset addresses for each interrupt available in the peripheral are described for each peripheral in the xmega a manual. for peripherals or modules that have only one interrupt, the interrupt vector is shown in table 13-1 . the program address is the word address. table 13-1. reset and interrupt vectors program address (base address) source interrupt description 0x000 reset 0x002 oscf_int_vect crystal oscillato r failure interrupt vector (nmi) 0x004 portc_int_base port c interrupt base 0x008 portr_int_base port r interrupt base 0x014 rtc_int_base real time counter interrupt base 0x018 t w ic_int_base two- w ire interface on port c interrupt base 0x01c tcc0_int_base timer/counter 0 on port c interrupt base 0x028 tcc1_int_base timer/counter 1 on port c interrupt base 0x030 spic_int_vect spi on port c interrupt vector 0x032 usartc0_int_base usart 0 on port c interrupt base 0x040 nvm_int_base non-volatile memory interrupt base 0x044 portb_int_base port b interrupt base 0x056 porte_int_base port e int base
25 8134i?avr?12/10 xmega d3 0x05a t w ie_int_base two- w ire interface on port e interrupt base 0x05e tce0_int_base timer/counter 0 on port e interrupt base 0x074 usarte0_int_base usart 0 on port e interrupt base 0x080 portd_int_base port d interrupt base 0x084 porta_int_base port a interrupt base 0x088 aca_int_base analog comparator on port a interrupt base 0x08e adca_int_base analog to digital converter on port a interrupt base 0x09a tcd0_int_base timer/counter 0 on port d interrupt base 0x0ae spid_int_vector spi d interrupt vector 0x0b0 usartd0_int_base usart 0 on port d interrupt base 0x0d0 portf_int_base port f interrupt base 0x0d8 tcf0_int_base timer/counter 0 on port f interrupt base table 13-1. reset and interrupt vectors (continued) program address (base address) source interrupt description
26 8134i?avr?12/10 xmega d3 14. i/o ports 14.1 features ? selectable input and output configuration for each pin individually ? flexible pin configuration through dedicated pin configuration register ? synchronous and/or asynchronous input sensing with port interrupts and events ? sense both edges ? sense rising edges ? sense falling edges ? sense low level ? asynchronous wake-up from all input sensing configurations ? two port interrupts with flexible pin masking ? highly configurable output driver and pull settings: ? totem-pole ? pull-up/-down ? wired-and ? wired-or ? bus-keeper ? inverted i/o ? optional slew rate control ? configuration of multiple pins in a single operation ? read-modify-write (rmw) support ? toggle/clear/set registers for output and direction registers ? clock output on port pin ? event channel 0 output on port pin 7 ? mapping of port registers (virtual port s) into bit accessible i/o memory space 14.2 overview the xmega d3 devices have flexible general purpos e i/o ports. a port consists of up to 8 pins, ranging from pin 0 to pin 7. the ports implemen t several functions, including synchronous/asyn- chronous input sensing, pin change interrupts and configurable output settings. all functions are individual per pin, but several pins may be configured in a single operation. 14.3 i/o configuration all port pins (pn) have programmable output configuration. in addition, all port pins have an inverted i/o function. for an input, this means in verting the signal between the port pin and the pin register. for an output, this means invert ing the output signal between the port register and the port pin. the inverted i/o function can be used also when the pin is used for alternate functions.
27 8134i?avr?12/10 xmega d3 14.3.1 push-pull figure 14-1. i/o configuration - totem-pole 14.3.2 pull-down figure 14-2. i/o configuration - totem-pole with pull-down (on input) 14.3.3 pull-up figure 14-3. i/o configuration - totem-pole with pull-up (on input) 14.3.4 bus-keeper the bus-keeper?s weak output produces the same logi cal level as the last output level. it acts as a pull-up if the last leve l was ?1?, and pull-down if the last level was ?0?. inn outn dirn pn inn outn dirn pn inn outn dirn pn
28 8134i?avr?12/10 xmega d3 figure 14-4. i/o configuration - totem-pole with bus-keeper 14.3.5 others figure 14-5. output configuration - w ired-or with optional pull-down figure 14-6. i/o configuration - w ired-and with optional pull-up inn outn dirn pn inn outn pn inn outn pn
29 8134i?avr?12/10 xmega d3 14.4 input sensing ? sense both edges ? sense rising edges ? sense falling edges ? sense low level input sensing is synchronous or asynchronous depending on the enabled clock for the ports, and the configuration is shown in figure 14-7 on page 29 . figure 14-7. input sensing system overview w hen a pin is configured with inverted i/o, the pin value is inverted before the input sensing. 14.5 port interrupt each port has two interrupts with separate priority and interrupt vector. all pins on the port can be individually selected as source for each of the interrupts. the interrupts are then triggered according to the input sense configuration for each pin configured as source for the interrupt. 14.6 alternate port functions in addition to the input/output functions on all po rt pins, most pins have alternate functions. this means that other modules or peripherals connected to the port can use the port pins for their functions, such as communication or pulse-width modulation. ?pinout and pin functions? on page 46 shows which modules on peripherals that enable alternate functions on a pin, and which alternate functions that is available on a pin. inverted i/o interrupt control ireq event pn d q r d q r synchronizer inn edge detect asynchronous sensing synchronous sensing edge detect
30 8134i?avr?12/10 xmega d3 15. t/c - 16-bits time r/counter with pwm 15.1 features ? five 16-bit timer/counters ? four timer/counters of type 0 ? one timer/counters of type 1 ? four compare or capture (cc) channels in timer/counter 0 ? two compare or capture (cc) channels in timer/counter 1 ? double buffered timer period setting ? double buffered compare or capture channels ? waveform generation: ? single slope pulse width modulation ? dual slope pulse width modulation ? frequency generation ? input capture: ? input capture with noise cancelling ? frequency capture ? pulse width capture ? 32-bit input capture ? event counter with direction control ? timer overflow and timer error interrupts and events ? one compare match or capture interrupt and event per cc channel ? hi-resolution extension (hi-res) ? advanced waveform extension (awex) 15.2 overview xmega d3 has five timer/counters, four timer/ counter 0 and one timer/counter 1. the differ- ence between them is that timer/counter 0 has four compare/capture channels, while timer/counter 1 has two compare/capture channels. the timer/counters (t/c) are 16-bit and can count any clock, event or external input in the microcontroller. a programmable prescaler is available to get a useful t/c resolution. updates of timer and compare registers are double buffered to ensure glitch free operation. single slope p w m, dual slope p w m and frequency generation waveforms can be generated using the com- pare channels. through the event system, any input pin or event in the microcontroller can be used to trigger input capture, hence no dedicated pins are requ ired for this. the input capture has a noise can- celler to avoid incorrect capture of the t/c, and can be used to do frequency and pulse width measurements. a wide range of interrupt or event sources ar e available, including t/c overflow, compare match and capture for each compare/capture channel in the t/c. portc has one timer/counter 0 and one timer/counter1. portd, porte and portf each have one timer/counter 0. notation of these are tcc0 (time/counter c0), tcc1, tcd0, tce0, and tcf0, respectively.
31 8134i?avr?12/10 xmega d3 figure 15-1. overview of a timer/counter and closely related peripherals the hi-resolution extension can be enabled to increase the waveform generation resolution by 2 bits (4x). this is available for all timer/counters. see ?hi-res - high resolution extension? on page 33 for more details. the advanced w aveform extension can be enabled to provide extra and more advanced fea- tures for the timer/counter. this are only available for timer/counter 0. see ?a w ex - advanced w aveform extension? on page 32 for more details. awex compare/capture channel d compare/capture channel c compare/capture channel b compare/capture channel a waveform generation buffer comparator hi-res fault protection capture control base counter counter control logic timer period prescaler dti dead-time insertion pattern generation clk per4 port event system clk per timer/counter
32 8134i?avr?12/10 xmega d3 16. awex - advanced waveform extension 16.1 features ? output with complementary output from each capture channel ? four dead time insertion (dti) un its, one for each capture channel ? 8-bit dti resolution ? separate high and low side dead-time setting ? double buffered dead-time ? event controlled fault protection ? single channel multiple output operation (for bldc motor control) ? double buffered pattern generation 16.2 overview the advanced w aveform extension (a w ex) provides extra features to the timer/counter in w aveform generation ( w g) modes. the a w ex enables easy and safe implementation of for example, advanced motor control (ac, bldc, sr , and stepper) and power control applications. any w g output from a timer/counter 0 is split into a complimentary pair of outputs when any a w ex feature is enabled. these output pairs go through a dead-time insertion (dti) unit that enables generation of the non-inverted low side (ls) and inverted high side (hs) of the w g output with dead time insertion between ls and hs switching. the dti output will override the normal port value according to the port override setting. optionally the final output can be inverted by using the invert i/o setting for the port pin. the pattern generation unit can be used to generate a synchronized bit pattern on the port it is connected to. in addition, the waveform generator output from compare channel a can be dis- tributed to, and override all port pins. w hen the pattern generator unit is enabled, the dti unit is bypassed. the fault protection unit is connected to the ev ent system. this enables any event to trigger a fault condition that will disable the a w ex output. several event channels can be used to trigger fault on several different conditions. the a w ex is available for tcc0. the notation of this is a w exc.
33 8134i?avr?12/10 xmega d3 17. hi-res - high r esolution extension 17.1 features ? increases waveform generator resolution by 2-bits (4x) ? supports frequency, single- and dual-slope pwm operation ? supports the awex when this is enable d and used for the same timer/counter 17.2 overview the hi-resolution (hi-res) extension is able to increase the resolution of the waveform genera- tion output by a factor of 4. w hen enabled for a timer/counter, the fast peripheral clock running at four times the cpu clock speed will be as input to th e timer/counter. the high resolution extension can also be used when an a w ex is enabled and used with a timer/counter. xmega d3 devices have one hi-res extensio n that can be enabled for each timer/counters on portc. the notation of this is hiresc.
34 8134i?avr?12/10 xmega d3 18. rtc - real-time counter 18.1 features ? 16-bit timer ? flexible tick resolution ranging from 1 hz to 32.768 khz ? one compare register ? one period register ? clear timer on overflow or compare match ? overflow or compare match event and interrupt generation 18.2 overview the xmega d3 includes a 16-bit real-time counter (rtc). the rtc can be clocked from an accurate 32.768 khz crystal osc illator, the 32.768 khz ca librated internal osc illator, or from the 32 khz ultra low power internal oscillator. the rtc includes both a period and a compare register. for details, see figure 18-1 . a wide range of resolution and time-out periods can be configured using the rtc. w ith a max- imum resolution of 30.5 s, time-out periods range up to 2000 seconds. w ith a resolution of 1 second, the maximum time-out period is over 18 hours (65536 seconds). figure 18-1. real-time counter overview 10-bit prescaler counter period compare = = overflow compare match 1.024 khz 32.768 khz
35 8134i?avr?12/10 xmega d3 19. twi - two wire interface 19.1 features ? two identical twi peripherals ? simple yet powerful and flexible communication interface ? both master and sla ve operation supported ? device can operate as transmitter or receiver ? 7-bit address space allows up to 128 different slave addresses ? multi-master arbitration support ? up to 400 khz data transfer speed ? slew-rate limited output drivers ? noise suppression circuitry rejects spikes on bus lines ? fully programmable slave address with general call support ? address recognition causes w ake-up when in sleep mode ? i 2 c and system management bus (smbus) compatible 19.2 overview the two- w ire interface (t w i) is a bi-directional wired-and bus with only two lines, the clock (scl) line and the data (sda) line. the protocol makes it possible to interconnect up to 128 indi- vidually addressable devices. since it is a mult i-master bus, one or more devices capable of taking control of the bus can be connected. the only external hardware needed to implement the bus is a single pull-up resistor for each of the t w i bus lines. mechanisms for resolving bus contention are inherent in the t w i protocol. portc and porte each has one t w i. notation of these peripherals are t w ic and t w ie, respectively.
36 8134i?avr?12/10 xmega d3 20. spi - serial peripheral interface 20.1 features ? two identical spi peripherals ? full-duplex, three-wire synchronous data transfer ? master or slave operation ? lsb first or msb first data transfer ? seven programmable bit rates ? end of transmission interrupt flag ? write collision flag protection ? wake-up from idle mode ? double speed (ck/2) master spi mode 20.2 overview the serial peripheral interface (spi) allows high-speed full-duplex, synchronous data transfer between different devices. devices can communica te using a master-slave scheme, and data is transferred both to and from the devices simultaneously. portc and portd each has one spi. notation of these peripherals are spic and spid, respectively.
37 8134i?avr?12/10 xmega d3 21. usart 21.1 features ? three identical usart peripherals ? full duplex operation (independent se rial receive and transmit registers) ? asynchronous or synchronous operation ? master or slave clocked synchronous operation ? high-resolution arithmetic baud rate generator ? supports serial frames with 5, 6, 7, 8, or 9 data bits and 1 or 2 stop bits ? odd or even parity generation and parity check supported by hardware ? data overrun detection ? framing error detection ? noise filtering includes false start bit detection and digital low pass filter ? three separate interrupts on tx complete, tx data register empty and rx complete ? multi-processor communication mode ? double speed asynchronous communication mode ? master spi mode for spi communication ? irda support through the ircom module 21.2 overview the universal synchronous and asynchronous serial receiver and transmitter (usart) is a highly flexible serial communica tion module. the usart supports full duplex communication, and both asynchronous and clocked synchronous operation. the usart can also be set in master spi mode to be used for spi communication. communication is frame based, and the frame format can be customized to support a wide range of standards. the usart is buffered in both direction, enabling continued data transmis- sion without any delay between frames. there are separate interrupt vectors for receive and transmit complete, enabling fully interrupt driven communication. frame error and buffer over- flow are detected in hardware and indicated with separate status flags. even or odd parity generation and parity check can also be enabled. one usart can use the ircom module to suppor t irda 1.4 physical compliant pulse modula- tion and demodulation for baud rates up to 115.2 kbps. portc, portd, and porte each has one usart. notation of these peripherals are usartc0, usartd0 and usarte0, respectively.
38 8134i?avr?12/10 xmega d3 22. ircom - ir communication module 22.1 features ? pulse modulation/demodulation for infrared communication ? compatible to irda 1.4 physical for baud rates up to 115.2 kbps ? selectable pulse modulation scheme ? 3/16 of baud rate period ? fixed pulse period, 8-bit programmable ? pulse modulation disabled ? built in filtering ? can be connected to and used by one usart at the time 22.2 overview xmega contains an infrared communication module (ircom) for irda communication with baud rates up to 115.2 kbps. this supports three modulation schemes: 3/16 of baud rate period, fixed programmable pulse time based on the peripheral clock speed, or pulse modulation dis- abled. there is one ircom available which can be connected to any usart to enable infrared pulse coding/decoding for that usart.
39 8134i?avr?12/10 xmega d3 23. adc - 12-bit analog to digital converter 23.1 features ? one adc with 12-bit resolution ? 200 ksps sample rate ? signed and unsign ed conversions ? 16 single ended inputs ? 8x4 differential inputs ? 3 internal inputs: ? integrated temperature sensor ? vcc voltage divided by 10 ? bandgap voltage ? software selectable gain of 1, 2, 4, 8, 16, 32 or 64 ? software selectable resolution of 8- or 12-bit. ? internal or external reference selection ? event triggered conversion for accurate timing ? interrupt/event on compare result 23.2 overview xmega d3 devices have one analog to digital converters (adc), see figure 23-1 on page 40 . the adc converts analog voltages to digital values. the adc has 12-bit resolution and is capable of converting up to 200k samples per second. the input selection is flexible, and both singleended and differential measurements can be done. for differential measurements an optional gain stage is available to increase the dynamic range. in addition several internal signal inputs are available. the adc can provide both signed and unsigned results. adc measurements can either be started by application software or an incoming event from another peripheral in the device. the latter ensure the adc measurements can be started with predictable timing, and without software intervention. the adc has one channel, meaning there is one input selection (mux selection) and one result register available. both internal and external analog reference voltages can be used. a very accurate internal 1.00v reference is available. an integrated temperature sensor is available and the output from this can be measured with the adc. a vcc/10 signal and the bandgap voltage can also be measured by the adc.
40 8134i?avr?12/10 xmega d3 figure 23-1. adc overview the adc may be configured for 8- or 12-bit result, reducing the minimum conversion time (prop- agation delay) from 0.5 s for 12-bit to 3.7 s for 8-bit result. adc conversion results are provided left- or right adjusted with optional ?1? or ?0? padding. this eases calculation when the result is represented as a signed integer (signed 16-bit number). porta has one adc. notation of this peripheral is adca. adc channel a register pin inputs pin inputs 1-64 x internal inputs channel a mux selection event trigger configuration reference selection
41 8134i?avr?12/10 xmega d3 24. ac - analog comparator 24.1 features ? two analog comparators ? selectable hysteresis ? no, small or large ? analog comparator output available on pin ? flexible input selection ? all pins on the port ? bandgap reference voltage. ? voltage scaler that can perform a 64-le vel scaling of the internal vcc voltage. ? interrupt and event generation on ? rising edge ? falling edge ?toggle ? window function interrupt and event generation on ? signal above window ? signal inside window ? signal below window 24.2 overview xmega d3 features two analog comparators (ac). an analog comparator compares two volt- ages, and the output indicates which input is largest. the analog comparator may be configured to give interrupt requests and/or events upon several different combinations of input change. hysteresis can be adjusted in order to find the optimal operation for each application. a wide range of input selection is available, both external pins and several internal signals can be used. the analog comparators are always grouped in pairs (ac0 and ac1) on each analog port. they have identical behavior but separate control registers. optionally, the state of the comparator is directly available on a pin. porta and has one ac pair. notations of this peripheral is aca.
42 8134i?avr?12/10 xmega d3 figure 24-1. analog comparator overview ac0 + - pin inputs internal inputs pin inputs internal inputs vcc scaled interrupt sensitivity control interrupts ac1 + - pin inputs internal inputs pin inputs internal inputs vcc scaled events pin 0 output
43 8134i?avr?12/10 xmega d3 24.3 input selection the analog comparators have a very flexible input selection and the two comparators grouped in a pair may be used to realize a window function. one pair of analog comparators is shown in figure 24-1 on page 42 . ? input selection from pin ? pin 0, 1, 2, 3, 4, 5, 6 selectable to positive input of analog comparator ? pin 0, 1, 3, 5, 7 selectable to negative input of analog comparator ? internal signals available on positive analog comparator inputs ? internal signals available on ne gative analog comparator inputs ? 64-level scaler of the vcc, available on negative analog comparator input ? bandgap voltage reference 24.4 window function the window function is realized by connecting the external inputs of the two analog comparators in a pair as shown in figure 24-2 . figure 24-2. analog comparator window function ac0 + - ac1 + - input signal upper limit of window lower limit of window interrupt sensitivity control interrupts events
44 8134i?avr?12/10 xmega d3 25. ocd - on-chip debug 25.1 features ? complete program flow control ? go, stop, reset, step into, step over, step out, run-to-cursor ? debugging on c and high-level language source code level ? debugging on assembler and disassembler level ? 1 dedicated program address or source level breakpoint for avr studio / debugger ? 4 hardware breakpoints ? unlimited number of user program breakpoints ? unlimited number of user data breakpoints, with break on: ? data location read, write or both read and write ? data location content equal or not equal to a value ? data location content is greater or less than a value ? data location content is within or outside a range ? bits of a data location are eq ual or not equal to a value ? non-intrusive operation ? no hardware or software resources in the device are used ? high speed operation ? no limitation on debug/programming clock frequency versus sys tem clock frequency 25.2 overview the xmega d3 has a powerful on-chip debug (ocd) system that - in combination with atmel?s development tools - provides all the necessary functions to debug an application. it has support for program and data breakpoints, and can debug an application from c and high level language source code level, as well as assembler and disassembler level. it has full non-intrusive opera- tion and no hardware or softw are resources in the device are used. the odc system is accessed through an external debugging tool wh ich connects to the pdi interface. refer to ?pdi - program and debug interface? on page 45 .
45 8134i?avr?12/10 xmega d3 26. pdi - program and debug interface 26.1 features ? pdi - program and debug interface (atmel proprietary 2-pin interface) ? access to the ocd system ? programming of flash, eepr om, fuses and lock bits 26.2 overview the programming and deb ug facilities are accessed through the pdi interface. the pdi physical interface uses one dedicated pin together with the reset pin, and no general purpose pins are used. the pdi is an atmel proprietary protocol for communication between the microcontroller and atmel?s or third party development tools.
46 8134i?avr?12/10 xmega d3 27. pinout and pin functions the pinout of xmega d3 is shown in ?? on page 2 . in addition to general i/o functionality, each pin may have several function. th is will depend on which peripheral is enabled and connected to the actual pin. only one of the alternate pin functions can be used at time. 27.1 alternate pin f unction description the tables below show the notation for all pin functions available and describe its function. 27.1.1 operation/power supply 27.1.2 port interrupt functions 27.1.3 analog functions 27.1.4 timer/counter and awex functions vcc digital supply voltage avcc analog supply voltage gnd ground sync port pin with full synchronous and limited asynchronous interrupt function async port pin with full syn chronous and full asynchro nous interrupt function acn analog comparator input pin n ac0out analog comparator 0 output adcn analog to digital converter input pin n aref analog reference input pin ocnx output compare channel x for timer/counter n ocnx inverted output compare channel x for timer/counter n ocnxls output compare channel x low side for timer/counter n ocnxhs output compare channel x high side for timer/counter n
47 8134i?avr?12/10 xmega d3 27.1.5 communication functions 27.1.6 oscillators, clock and event 27.1.7 debug/system functions scl serial clock for t w i sda serial data for t w i sclin serial clock in for t w i when external driver interface is enabled sclout serial clock out for t w i when external driver interface is enabled sdain serial data in for t w i when external driver interface is enabled sdaout serial data out for t w i when external driver interface is enabled xckn transfer clock for usart n rxdn receiver data for usart n txdn transmitter data for usart n s s slave select for spi mosi master out slave in for spi miso master in slave out for spi sck serial clock for spi toscn timer oscillator pin n xtaln input/output for inverting oscillator pin n clkout peripheral clock output evout event channel 0 output reset reset pin pdi_clk program and debug interface clock pin pdi_data program and debug interface data pin
48 8134i?avr?12/10 xmega d3 27.2 alternate pin functions the tables below show the main and alternate pin functions for all pins on each port. they also show which peripheral that makes use of or enables the alternate pin function. table 27-1. port a - alternate functions port a pin # interrupt adca pos adca neg adaa gainpos adca gainneg aca pos aca neg aca out refa gnd 60 avcc 61 pa0 62 sync adc0 adc0 adc0 ac0 ac0 arefa pa1 63 sync adc1 adc1 adc1 ac1 ac1 pa2 64 sync/async adc2 adc2 adc2 ac2 pa3 1 sync adc3 adc3 adc3 ac3 ac3 pa4 2 sync adc4 adc4 adc4 ac4 pa5 3 sync adc5 adc5 adc5 ac5 ac5 pa6 4 sync adc6 adc6 adc6 ac6 pa7 5 sync adc7 adc7 adc7 ac7 ac0 out table 27-2. port b - alternate functions port b pin # interrupt adca pos refb pb0 6 sync adc8 arefb pb1 6 sync adc9 pb2 8 sync/async adc10 pb3 9 sync adc11 pb4 10 sync adc12 pb5 11 sync adc13 pb6 12 sync adc14 pb7 13 sync adc15 gnd 14 vcc 15
49 8134i?avr?12/10 xmega d3 table 27-3. port c - alternate functions port c pin # interrupt tcc0 awexc tcc1 usartc0 spic twic clockout eventout pc0 16 sync oc0a oc0als sda pc1 17 sync oc0b oc0ahs xck0 scl pc2 18 sync/async oc0c oc0bls rxd0 pc3 19 sync oc0d oc0bhs txd0 pc4 20 sync oc0cls oc1a ss pc5 21 sync oc0chs oc1b mosi pc6 22 sync oc0dls miso pc7 23 sync oc0dhs sck clkout evout gnd 24 vcc 25 table 27-4. port d - alternate functions port d pin # interrupt tcd0 usartd0 spid clockout eventout pd0 26 sync oc0a pd1 27 sync oc0b xck0 pd2 28 sync/async oc0c rxd0 pd3 29 sync oc0d txd0 pd4 30 sync ss pd5 31 sync mosi pd6 32 sync miso pd7 33 sync sck clkout evout gnd 34 vcc 35 table 27-5. port e - alternate functions port e pin # interrupt tce0 usarte0 clockout eventout tosc twie pe0 36 sync oc0a sda pe1 37 sync oc0b xck0 scl pe2 38 sync/async oc0c rxd0 pe3 39 sync oc0d txd0 pe4 40 sync pe5 41 sync pe6 42 sync tosc1 pe7 43 sync clkout evout tosc1 gnd 44 vcc 45
50 8134i?avr?12/10 xmega d3 table 27-7. port r - alternate functions table 27-6. port f - alternate functions port f pin # interrupt tcf0 pf0 46 sync oc0a pf1 47 sync oc0b pf2 48 sync/async oc0c pf3 49 sync oc0d pf4 50 sync pf5 51 sync pf6 54 sync pf7 55 sync gnd 52 vcc 53 port r pin # interrupt pdi xtal pdi 56 pdi_data reset 57 pdi_clock pro 58 sync xtal2 pr1 59 sync xtal1
51 8134i?avr?12/10 xmega d3 28. peripheral modu le address map the address maps show the base address for each peripheral and module in xmega d3. for complete register description and summary for each peripheral module, refer to the xmega a manual. table 28-1. peripheral module address map base address name description 0x0000 gpio general purpose io registers 0x0010 vport0 virtual port 0 0x0014 vport1 virtual port 1 0x0018 vport2 virtual port 2 0x001c vport3 virtual port 2 0x0030 cpu cpu 0x0040 clk clock control 0x0048 sleep sleep controller 0x0050 osc oscillator control 0x0060 dfllrc32m dfll for the 32 mhz internal rc oscillator 0x0068 dfllrc2m dfll for the 2 mhz rc oscillator 0x0070 pr power reduction 0x0078 rst reset controller 0x0080 w dt w atch-dog timer 0x0090 mcu mcu control 0x00a0 pmic programmable multilevel interrupt controller 0x00b0 portcfg port configuration 0x0180 evsys event system 0x01c0 nvm non volatile memory (nvm) controller 0x0200 adca analog to digital converter on port a 0x0380 aca analog comparator pair on port a 0x0400 rtc real time counter 0x0480 t w ic two w ire interface on port c 0x04a0 t w ie two w ire interface on port e 0x0600 porta port a 0x0620 portb port b 0x0640 portc port c 0x0660 portd port d 0x0680 porte port e 0x06a0 portf port f 0x07e0 portr port r 0x0800 tcc0 timer/counter 0 on port c 0x0840 tcc1 timer/counter 1 on port c 0x0880 a w exc advanced w aveform extension on port c 0x0890 hiresc high resolution extension on port c 0x08a0 usartc0 usart 0 on port c 0x08c0 spic serial peripheral interface on port c 0x08f8 ircom infrared communication module 0x0900 tcd0 timer/counter 0 on port d 0x09a0 usartd0 usart 0 on port d 0x09c0 spid serial peripheral interface on port d 0x0a00 tce0 timer/counter 0 on port e 0x0a80 a w exe advanced w aveform extensionon port e 0x0aa0 usarte0 usart 0 on port e 0x0ac0 spie serial peripheral interface on port e 0x0b00 tcf0 timer/counter 0 on port f
52 8134i?avr?12/10 xmega d3 29. instruction set summary mnemonics operands description operation flags #clocks arithmetic and logic instructions add rd, rr add without carry rd rd + rr z,c,n,v,s,h 1 adc rd, rr add with carry rd rd + rr + c z,c,n,v,s,h 1 adi w rd, k add immediate to w ord rd rd + 1:rd + k z,c,n,v,s 2 sub rd, rr subtract without carry rd rd - rr z,c,n,v,s,h 1 subi rd, k subtract immediate rd rd - k z,c,n,v,s,h 1 sbc rd, rr subtract with carry rd rd - rr - c z,c,n,v,s,h 1 sbci rd, k subtract immediate with carry rd rd - k - c z,c,n,v,s,h 1 sbi w rd, k subtract immediate from w ord rd + 1:rd rd + 1:rd - k z,c,n,v,s 2 and rd, rr logical and rd rd ? rr z,n,v,s 1 andi rd, k logical and with immediate rd rd ? k z,n,v,s 1 or rd, rr logical or rd rd v rr z,n,v,s 1 ori rd, k logical or with immediate rd rd v k z,n,v,s 1 eor rd, rr exclusive or rd rd rr z,n,v,s 1 com rd one?s complement rd $ff - rd z,c,n,v,s 1 neg rd two?s complement rd $00 - rd z,c,n,v,s,h 1 sbr rd,k set bit(s) in register rd rd v k z,n,v,s 1 cbr rd,k clear bit(s) in register rd rd ? ($ffh - k) z,n,v,s 1 inc rd increment rd rd + 1 z,n,v,s 1 dec rd decrement rd rd - 1 z,n,v,s 1 tst rd test for zero or minus rd rd ? rd z,n,v,s 1 clr rd clear register rd rd rd z,n,v,s 1 ser rd set register rd $ff none 1 mul rd,rr multiply unsigned r1:r0 rd x rr (uu) z,c 2 muls rd,rr multiply signed r1:r0 rd x rr (ss) z,c 2 mulsu rd,rr multiply signed with unsigned r1:r0 rd x rr (su) z,c 2 fmul rd,rr fractional multiply unsigned r1:r0 rd x rr<<1 (uu) z,c 2 fmuls rd,rr fractional multiply signed r1:r0 rd x rr<<1 (ss) z,c 2 fmulsu rd,rr fractional multiply signed with unsigned r1:r0 rd x rr<<1 (su) z,c 2 branch instructions rjmp k relative jump pc pc + k + 1 none 2 ijmp indirect jump to (z) pc(15:0) pc(21:16) z, 0 none 2 eijmp extended indirect jump to (z) pc(15:0) pc(21:16) z, eind none 2 jmp k jump pc k none 3 rcall k relative call subroutine pc pc + k + 1 none 2 / 3 (1) icall indirect call to (z) pc(15:0) pc(21:16) z, 0 none 2 / 3 (1) eicall extended indirect call to (z) pc(15:0) pc(21:16) z, eind none 3 (1) call k call subroutine pc k none 3 / 4 (1)
53 8134i?avr?12/10 xmega d3 ret subroutine return pc stack none 4 / 5 (1) reti interrupt return pc stack i 4 / 5 (1) cpse rd,rr compare, skip if equal if (rd = rr) pc pc + 2 or 3 none 1 / 2 / 3 cp rd,rr compare rd - rr z,c,n,v,s,h 1 cpc rd,rr compare with carry rd - rr - c z,c,n,v,s,h 1 cpi rd,k compare with immediate rd - k z,c,n,v,s,h 1 sbrc rr, b skip if bit in register cleared if (rr(b) = 0) pc pc + 2 or 3 none 1 / 2 / 3 sbrs rr, b skip if bit in register set if (rr(b) = 1) pc pc + 2 or 3 none 1 / 2 / 3 sbic a, b skip if bit in i/o register cleared if (i/o(a,b) = 0) pc pc + 2 or 3 none 2 / 3 / 4 sbis a, b skip if bit in i/o register set if (i/o(a,b) =1) pc pc + 2 or 3 none 2 / 3 / 4 brbs s, k branch if status flag set if (sreg(s) = 1) then pc pc + k + 1 none 1 / 2 brbc s, k branch if status flag cleared if (sreg(s) = 0) then pc pc + k + 1 none 1 / 2 breq k branch if equal if (z = 1) then pc pc + k + 1 none 1 / 2 brne k branch if not equal if (z = 0) then pc pc + k + 1 none 1 / 2 brcs k branch if carry set if (c = 1) then pc pc + k + 1 none 1 / 2 brcc k branch if carry cleared if (c = 0) then pc pc + k + 1 none 1 / 2 brsh k branch if same or higher if (c = 0) then pc pc + k + 1 none 1 / 2 brlo k branch if lower if (c = 1) then pc pc + k + 1 none 1 / 2 brmi k branch if minus if (n = 1) then pc pc + k + 1 none 1 / 2 brpl k branch if plus if (n = 0) then pc pc + k + 1 none 1 / 2 brge k branch if greater or equal, signed if (n v= 0) then pc pc + k + 1 none 1 / 2 brlt k branch if less than, signed if (n v= 1) then pc pc + k + 1 none 1 / 2 brhs k branch if half carry flag set if (h = 1) then pc pc + k + 1 none 1 / 2 brhc k branch if half carry flag cleared if (h = 0) then pc pc + k + 1 none 1 / 2 brts k branch if t flag set if (t = 1) then pc pc + k + 1 none 1 / 2 brtc k branch if t flag cleared if (t = 0) then pc pc + k + 1 none 1 / 2 brvs k branch if overflow flag is set if (v = 1) then pc pc + k + 1 none 1 / 2 brvc k branch if overflow flag is cleared if (v = 0) then pc pc + k + 1 none 1 / 2 brie k branch if interrupt enabled if (i = 1) then pc pc + k + 1 none 1 / 2 brid k branch if interrupt disabled if (i = 0) then pc pc + k + 1 none 1 / 2 data transfer instructions mov rd, rr copy register rd rr none 1 mov w rd, rr copy register pair rd+1:rd rr+1:rr none 1 ldi rd, k load immediate rd k none 1 lds rd, k load direct from data space rd (k) none 2 (1)(2) ld rd, x load indirect rd (x) none 1 (1)(2) ld rd, x+ load indirect and post-increment rd x (x) x + 1 none 1 (1)(2) ld rd, -x load indirect and pre-decrement x x - 1, rd (x) x - 1 (x) none 2 (1)(2) ld rd, y load indirect rd (y) (y) none 1 (1)(2) ld rd, y+ load indirect and post-increment rd y (y) y + 1 none 1 (1)(2) mnemonics operands description operation flags #clocks
54 8134i?avr?12/10 xmega d3 ld rd, -y load indirect and pre-decrement y rd y - 1 (y) none 2 (1)(2) ldd rd, y+q load indirect with displacement rd (y + q) none 2 (1)(2) ld rd, z load indirect rd (z) none 1 (1)(2) ld rd, z+ load indirect and post-increment rd z (z), z+1 none 1 (1)(2) ld rd, -z load indirect and pre-decrement z rd z - 1, (z) none 2 (1)(2) ldd rd, z+q load indirect with displacement rd (z + q) none 2 (1)(2) sts k, rr store direct to data space (k) rd none 2 (1) st x, rr store indirect (x) rr none 1 (1) st x+, rr store indirect and post-increment (x) x rr, x + 1 none 1 (1) st -x, rr store indirect and pre-decrement x (x) x - 1, rr none 2 (1) st y, rr store indirect (y) rr none 1 (1) st y+, rr store indirect and post-increment (y) y rr, y + 1 none 1 (1) st -y, rr store indirect and pre-decrement y (y) y - 1, rr none 2 (1) std y+q, rr store indirect with displacement (y + q) rr none 2 (1) st z, rr store indirect (z) rr none 1 (1) st z+, rr store indirect and post-increment (z) z rr z + 1 none 1 (1) st -z, rr store indirect and pre-decrement z z - 1 none 2 (1) std z+q,rr store indirect with displacement (z + q) rr none 2 (1) lpm load program memory r0 (z) none 3 lpm rd, z load program memory rd (z) none 3 lpm rd, z+ load program memory and post-increment rd z (z), z + 1 none 3 elpm extended load program memory r0 (rampz:z) none 3 elpm rd, z extended load program memory rd (rampz:z) none 3 elpm rd, z+ extended load program memory and post- increment rd z (rampz:z), z + 1 none 3 spm store program memory (rampz:z) r1:r0 none - spm z+ store program memory and post-increment by 2 (rampz:z) z r1:r0, z + 2 none - in rd, a in from i/o location rd i/o(a) none 1 out a, rr out to i/o location i/o(a) rr none 1 push rr push register on stack stack rr none 1 (1) pop rd pop register from stack rd stack none 2 (1) bit and bit-test instructions lsl rd logical shift left rd(n+1) rd(0) c rd(n), 0, rd(7) z,c,n,v,h 1 lsr rd logical shift right rd(n) rd(7) c rd(n+1), 0, rd(0) z,c,n,v 1 mnemonics operands description operation flags #clocks
55 8134i?avr?12/10 xmega d3 notes: 1. cycle times for data memo ry accesses assume internal memo ry accesses, and are not valid for accesses via the external ram interface. 2. one extra cycle must be added when accessing internal sram. rol rd rotate left through carry rd(0) rd(n+1) c c, rd(n), rd(7) z,c,n,v,h 1 ror rd rotate right through carry rd(7) rd(n) c c, rd(n+1), rd(0) z,c,n,v 1 asr rd arithmetic shift right rd(n) rd(n+1), n=0..6 z,c,n,v 1 s w ap rd swap nibbles rd(3..0) ? rd(7..4) none 1 bset s flag set sreg(s) 1sreg(s)1 bclr s flag clear sreg(s) 0sreg(s)1 sbi a, b set bit in i/o register i/o(a, b) 1 none 1 cbi a, b clear bit in i/o register i/o(a, b) 0 none 1 bst rr, b bit store from register to t t rr(b) t 1 bld rd, b bit load from t to register rd(b) t none 1 sec set carry c 1c1 clc clear carry c 0c1 sen set negative flag n 1n1 cln clear negative flag n 0n1 sez set zero flag z 1z1 clz clear zero flag z 0z1 sei global interrupt enable i 1i1 cli global interrupt disable i 0i1 ses set signed test flag s 1s1 cls clear signed test flag s 0s1 sev set two?s complement overflow v 1v1 clv clear two?s complement overflow v 0v1 set set t in sreg t 1t1 clt clear t in sreg t 0t1 seh set half carry flag in sreg h 1h1 clh clear half carry flag in sreg h 0h1 mcu control instructions break break (see specific descr. for break) none 1 nop no operation none 1 sleep sleep (see specific descr. for sleep) none 1 w dr w atchdog reset (see specific descr. for w dr) none 1 mnemonics operands description operation flags #clocks
56 8134i?avr?12/10 xmega d3 30. electrical characteristics all typical values are measured at t = 25 c unless other temperature condition is given. all min- imum and maximum values are valid across operating temperature and voltage unless other conditions are given. 30.1 absolute maximum ratings* 30.2 dc characteristics operating temperature.................................. -55 c to +125 c *notice: stresses beyond those listed under ?absolute maximum ratings? may cause permanent dam- age to the device. this is a stress rating only and functional operation of the device at these or other conditions beyond those indicated in the operational sections of th is specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. storage temperature ..................................... -65 c to +150 c voltage on any pin with respect to ground. -0.5v to v cc +0.5v maximum operating voltage ............................................ 3.6v dc current per i/o pin ............................................... 20.0 ma dc current v cc and gnd pins................................ 200.0 ma table 30-1. current consumption symbol parameter condition min typ max units i cc power supply current (1) active 32 khz, ext. clk v cc = 1.8v 25 a v cc = 3.0v 71 1 mhz, ext. clk v cc = 1.8v 317 v cc = 3.0v 697 2 mhz, ext. clk v cc = 1.8v 613 800 v cc = 3.0v 1340 1800 32 mhz, ext. clk v cc = 3.0v 15.7 18 ma idle 32 khz, ext. clk v cc = 1.8v 3.6 a v cc = 3.0v 6.9 1 mhz, ext. clk v cc = 1.8v 112 v cc = 3.0v 215 2 mhz, ext. clk v cc = 1.8v 224 350 v cc = 3.0v 430 650 32 mhz, ext. clk v cc = 3.0v 6.9 8 ma power-down mode all functions disabled, t = 25c v cc = 3.0v 0.1 3 a all functions disabled, t = 85c v cc = 3.0v 1.75 5 ulp, w dt, sampled bod, t = 25c v cc = 1.8v 1 6 v cc = 3.0v 1 6 ulp, w dt, sampled bod, t=85c v cc = 3.0v 2.7 10
57 8134i?avr?12/10 xmega d3 notes: 1. all power reduction registers set. 2. all parameters measured as the difference in curr ent consumption between module enabled and disabled. all data at v cc = 3.0v, clk sys = 1 mhz external clock with no prescaling. i cc power-save mode rtc 1 khz from low power 32 khz tosc, t = 25c v cc = 1.8v 0.5 4 a v cc = 3.0v 0.7 4 rtc from low power 32 khz tosc v cc = 3.0v 1.16 reset current consumption without reset pull-up resistor current v cc = 3.0v 1300 module current consumption (2) i cc rc32m 460 a rc32m w/dfll internal 32.768 khz oscillator as dfll source 594 rc2m 101 rc2m w/dfll internal 32.768 khz oscillator as dfll source 134 rc32k 27 pll multiplication factor = 10x 202 w atchdog normal mode 1 bod continuous mode 128 bod sampled mode 1 internal 1.00 v ref 80 temperature reference 74 rtc with int. 32 khz rc as source no prescaling 27 rtc with ulp as source no prescaling 1 ac 103 usart rx and tx enabled, 9600 baud 5.4 timer/counter prescaler div1 20 flash/eeprom programming vcc = 2v 25 ma vcc = 3v 33 table 30-1. current consumption symbol parameter condition min typ max units
58 8134i?avr?12/10 xmega d3 30.3 operating volt age and frequency the maximum cpu clock frequency of the xmega d3 devices is depending on v cc . as shown in figure 30-1 on page 58 the frequency vs. v cc curve is linear between 1.8v < v cc <2.7v. figure 30-1. maximum frequency vs. vcc table 30-2. operating voltage and frequency symbol parameter condition min typ max units clk cpu cpu clock frequency v cc = 1.6v 0 12 mhz v cc = 1.8v 0 12 v cc = 2.7v 0 32 v cc = 3.6v 0 32 1. 8 12 32 mhz v 2.7 3.6 1.6 safe operating area
59 8134i?avr?12/10 xmega d3 30.4 flash and eeprom memory characteristics notes: 1. programming is timed from the internal 2 mhz oscillator. 2. eeprom is not erased if the eesave fuse is programmed. table 30-3. endurance and data retention symbol parameter condi tion min typ max units flash w rite/erase cycles 25c 10k cycle 85c 10k data retention 25c 100 year 55c 25 eeprom w rite/erase cycles 25c 80k cycle 85c 30k data retention 25c 100 year 55c 25 table 30-4. programming time symbol parameter condition min typ (1) max units chip erase flash, eeprom (2) and sram erase 40 ms flash page erase 6 page w rite 6 page w riteautomatic page erase and w rite 12 eeprom page erase 6 page w rite 6 page w riteautomatic page erase and w rite 12
60 8134i?avr?12/10 xmega d3 30.5 adc characteristics note: 1. refer to ?bandgap characteristics? on page 61 for more parameter details. table 30-5. adc characteristics symbol parameter condition min typ max units res resolution programmable: 8/12 8 12 12 bits inl integral non-linearity differential mode, 80ksps -5 2 5 lsb dnl differential non-linearity differential mode, 80ksps < 1 gain error < 10 mv offset error < 2 adc clk adc clock frequency max is 1/4 of peripheral clock 1400 khz conversion rate 200 ksps conversion time (propagation delay) (res+2)/2+gain res = 8 or 12, gain = 0, 1, 2 or 3 5710 adc clk cycles sampling time 1/2 adc clk cycle 0.36 us conversion range 0 vref v avcc analog supply voltage v cc -0.3 v cc +0.3 vref reference voltage 1.0 v cc -0.6v input bandwidth khz int1v internal 1.00v reference (1) 1.00 v intvcc internal v cc /1.6 v cc /1.6 scaledvcc scaled internal v cc /10 input v cc /10 r aref reference input resistance > 10 m start-up time 12 24 adc clk cycles internal input sampling speed temp. sensor, v cc /10, bandgap 100 ksps table 30-6. adc gain stage characteristics symbol parameter condi tion min typ max units gain error 1 to 64 gain < 1 % offset error < 1 mv vrms noise level at input 64x gain vref = int. 1v 0.12 vref = ext. 2v 0.06 clock rate same as adc 200 khz
61 8134i?avr?12/10 xmega d3 30.6 analog comparator characteristics 30.7 bandgap characteristics 30.8 brownout detection characteristics note: 1. bod is calibrated at 85 c within the bod level 0 values, and bod level 0 is the default level. table 30-7. analog comparator characteristics symbol parameter condition min typ max units v off input offset voltage v cc = 1.6 - 3.6v <10 mv i lk input leakage current v cc = 1.6 - 3.6v < 1000 pa v hys1 hysteresis, no v cc = 1.6 - 3.6v 0 mv v hys2 hysteresis, small v cc = 1.6 - 3.6v 20 mv v hys3 hysteresis, large v cc = 1.6 - 3.6v 40 t delay propagation delay v cc = 1.6 - 3.6v 175 ns table 30-8. bandgap voltage characteristics symbol parameter condition min typ max units bandgap startup time as reference for adc 1 clk_per + 2.5s s as input to ac or adc 1.5 bandgap voltage 1.1 v int1v internal 1.00v reference t= 85c, after calibration 0.99 1 1.01 variation over voltage and temperature v cc = 1.6 - 3.6v, ta = -40 c to 85 c2 % table 30-9. brownout detection characteristics (1) symbol parameter condition min typ max units bod level 0 falling vcc t= 85c 1.62 1.63 1.7 v bod level 1 falling vcc 1.9 bod level 2 falling vcc 2.17 bod level 3 falling vcc 2.43 bod level 4 falling vcc 2.68 bod level 5 falling vcc 2.96 bod level 6 falling vcc 3.22 bod level 7 falling vcc 3.49 hysteresis bod level 0-5 1 %
62 8134i?avr?12/10 xmega d3 30.9 pad characteristics 30.10 por characteristics 30.11 reset characteristics table 30-10. pad characteristics symbol parameter condition min typ max units v ih input high voltage v cc = 2.4 - 3.6v 0.7*v cc v cc +0.5 v v cc = 1.6 - 2.4v 0.8*v cc v cc +0.5 v il input low voltage v cc = 2.4 - 3.6v -0.5 0.3*v cc v cc = 1.6 - 2.4v -0.5 0.2*v cc v ol output low voltage gpio i oh = 8 ma, v cc = 3.3v 0.4 0.76 i oh = 5 ma, v cc = 3.0v 0.3 0.64 i oh = 3 ma, v cc = 1.8v 0.2 0.46 v oh output high voltage gpio i oh = -4 ma, v cc = 3.3v 2.6 2.9 i oh = -3 ma, v cc = 3.0v 2.1 2.7 i oh = -1 ma, v cc = 1.8v 1.4 1.6 i il input leakage current i/o pin <0.001 1 a i ih input leakage current i/o pin <0.001 1 r p i/o pin pull/buss keeper resistor 20 k r rst reset pin pull-up resistor 20 input hysteresis 0.5 v table 30-11. power-on reset characteristics symbol parameter condition min typ max units v pot- por threshold voltage falling v cc v cc falls faster than 1v/ms 0.4 0.8 v v cc falls at 1v/ms or slower 0.8 1.3 v pot+ por threshold voltage rising v cc 1.3 1.59 table 30-12. reset characteristics symbol parameter condition min typ max units minimum reset pulse width 90 1000 ns reset threshold voltage v cc = 2.7 - 3.6v 0.45*v cc v v cc = 1.6 - 2.7v 0.42*v cc
63 8134i?avr?12/10 xmega d3 30.12 oscillator characteristics note: 1. see figure 30-2 on page 64 for definition table 30-13. internal 32.768khz osc illator characteristics symbol parameter condition min typ max units accuracy t = 85 c, v cc = 3v, after production calibration -0.5 0.5 % table 30-14. internal 2mhz oscilla tor characteristics symbol parameter condition min typ max units accuracy t = 85 c, v cc = 3v, after production calibration -1.5 1.5 % dfll calibration step size t = 25 c, v cc = 3v 0.15 table 30-15. internal 32mhz oscillator characteristics symbol parameter condition min typ max units accuracy t = 85 c, v cc = 3v, after production calibration -1.5 1.5 % dfll calibration stepsize t = 25 c, v cc = 3v 0.2 table 30-16. internal 32khz, ulp oscillator characteristics symbol parameter condition min typ max units output frequency 32 khz ulp osc t = 85 c, v cc = 3.0v 26 khz table 30-17. external 32.768khz crystal osc illator and tosc characteristics symbol parameter condi tion min typ max units sf safety factor capacitive load matched to crystal specification 3 esr/r 1 recommended crystal equivalent series resistance (esr) crystal load capacitance 6.5pf 60 k crystal load capacitance 9.0pf 35 c in_tosc input capacitance between tosc pins normal mode 1.7 pf low power mode 2.2
64 8134i?avr?12/10 xmega d3 figure 30-2. tosc input capacitance the input capacitance between the tosc pins is cl1 + cl2 in series as seen from the crystal when oscillating without external capacitors. notes: 1. non-prescaled system clock source. 2. time from pin change on external interrupt pin to first availa ble clock cycle. additional interrupt response time is minimum 5 system clock source cycles. c l1 c l2 tosc1 tosc2 device internal external 32.768 khz crystal table 30-18. device wake-up time from sleep symbol parameter condition (1) min typ (2) max units idle sleep, standby and extended standby sleep mode int. 32.768 khz rc 130 s int. 2 mhz rc 2 ext. 2 mhz clock 2 int. 32 mhz rc 0.17 power-save and power-down sleep mode int. 32.768 khz rc 320 int. 2 mhz rc 10.3 ext. 2 mhz clock 4.5 int. 32 mhz rc 5.8
65 8134i?avr?12/10 xmega d3 31. typical characteristics 31.1 active supply current figure 31-1. active supply current vs. frequency f sys = 0 - 1.0 mhz external clock, t = 25c figure 31-2. active supply current vs. frequency f sys = 1 - 32 mhz external clock, t = 25c 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 100 200 300 400 500 600 700 8 00 900 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0. 8 0.9 1 fre qu ency [mhz] i cc [ u a] 3.3 v 3.0 v 2.7 v 0 2 4 6 8 10 12 14 16 1 8 20 04 8 12 16 20 24 2 8 32 fre qu ency [mhz] i cc [ma] 2.2 v 1. 8 v
66 8134i?avr?12/10 xmega d3 figure 31-3. active supply current vs. vcc f sys = 1.0 mhz external clock figure 31-4. active supply current vs. vcc f sys = 32.768 khz internal rc 8 5 c 25 c -40 c 0 100 200 300 400 500 600 700 8 00 900 1000 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a] 8 5 c 25 c -40 c 0 20 40 60 8 0 100 120 140 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a]
67 8134i?avr?12/10 xmega d3 figure 31-5. active supply current vs. vcc f sys = 2.0 mhz internal rc figure 31-6. active supply current vs. vcc f sys = 32 mhz internal rc prescaled to 8 mhz 8 5 c 25 c -40 c 0 200 400 600 8 00 1000 1200 1400 1600 1 8 00 2000 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a] 8 5 c 25 c -40 c 0 1 2 3 4 5 6 7 8 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ma]
68 8134i?avr?12/10 xmega d3 figure 31-7. active supply current vs. vcc f sys = 32 mhz internal rc 31.2 idle supply current figure 31-8. idle supply current vs. frequency f sys = 0 - 1.0 mhz, t = 25c 8 5 c 25 c -40 c 0 5 10 15 20 25 2.7 2. 8 2.9 3 3.1 3.2 3.3 3.4 3.5 3.6 v cc [ v ] i cc [ma] 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 50 100 150 200 250 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0. 8 0.9 1 fre qu ency [mhz] i cc [ u a]
69 8134i?avr?12/10 xmega d3 figure 31-9. idle supply current vs. frequency f sys = 1 - 32 mhz, t = 25c figure 31-10. idle supply current vs. vcc f sys = 1.0 mhz external clock 3.3 v 3.0 v 2.7 v 0 1 2 3 4 5 6 7 8 04 8 12 16 20 24 2 8 32 fre qu ency [mhz] i cc [ma] 1. 8 v 2.2 v 8 5 c 25 c -40 c 0 50 100 150 200 250 300 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a]
70 8134i?avr?12/10 xmega d3 figure 31-11. idle supply current vs. vcc f sys = 32.768 khz internal rc figure 31-12. idle supply current vs. vcc f sys = 2.0 mhz internal rc 8 5 c 25 c -40 c 0 5 10 15 20 25 30 35 40 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a] 8 5 c 25 c -40 c 0 100 200 300 400 500 600 700 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a]
71 8134i?avr?12/10 xmega d3 figure 31-13. idle supply current vs. vcc f sys = 32 mhz internal rc prescaled to 8 mhz figure 31-14. idle supply current vs. vcc f sys = 32 mhz internal rc 8 5 c 25 c -40 c 0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ma] 8 5 c 25 c -40 c 0 2 4 6 8 10 2.7 2. 8 2.9 3 3.1 3.2 3.3 3.4 3.5 3.6 v cc [ v ] i cc [ma]
72 8134i?avr?12/10 xmega d3 31.3 power-down supply current figure 31-15. power-down supply current vs. temperature figure 31-16. power-down supply current vs. temperature with wdt and sampled bod enabled. 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 2 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] i cc [ u a] 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 0.5 1 1.5 2 2.5 3 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] i cc [ u a]
73 8134i?avr?12/10 xmega d3 31.4 power-save supply current figure 31-17. power-save supply current vs. temperature with wdt, sampled bod and rtc from ulp enabled 31.5 pin pull-up figure 31-18. reset pull-up resistor curr ent vs. reset pin voltage v cc = 1.8v 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 0.5 1 1.5 2 2.5 3 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] i cc [ u a] 8 5 c 25 c -40 c 0 20 40 60 8 0 100 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 v reset [ v ] i reset [ u a]
74 8134i?avr?12/10 xmega d3 figure 31-19. reset pull-up resistor curr ent vs. reset pin voltage v cc = 3.0v figure 31-20. reset pull-up resistor curr ent vs. reset pin voltage v cc = 3.3v 8 5 c 25 c -40 c 0 20 40 60 8 0 100 120 140 160 0 0.5 1 1.5 2 2.5 3 v reset [ v ] i reset [ u a] 8 5 c 25 c -40 c 0 20 40 60 8 0 100 120 140 160 1 8 0 0 0.5 1 1.5 2 2.5 3 v reset [ v ] i reset [ u a]
75 8134i?avr?12/10 xmega d3 31.6 pin output voltage vs. sink/source current figure 31-21. i/o pin output voltage vs. source current vcc = 1.8v figure 31-22. i/o pin output voltage vs. source current vcc = 3.0v 8 5 c 25 c -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 2 i pi n [ma] v pi n [ v ] -6 -5 -4 -3 -2 -1 0 8 5 c 25 c -40 c 0 0.5 1 1.5 2 2.5 3 3.5 i pi n [ma] v pi n [ v ] -10 -9 - 8 -7 -6 -5 -4 -3 -2 -1 0
76 8134i?avr?12/10 xmega d3 figure 31-23. i/o pin output voltage vs. source current vcc = 3.3v figure 31-24. i/o pin output voltage vs. sink current vcc = 1.8v 8 5 c 25 c -40 c 0 0.5 1 1.5 2 2.5 3 3.5 i pi n [ma] v pi n [ v ] -10 -9 - 8 -7 -6 -5 -4 -3 -2 -1 0 -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 i pi n [ma] v pi n [ v ] 25c 8 5c 0 1 2 3 4 5 6 7 8 9 10
77 8134i?avr?12/10 xmega d3 figure 31-25. i/o pin output voltage vs. sink current vcc = 3.0v figure 31-26. i/o pin output voltage vs. sink current vcc = 3.3v 8 5 c 25 c -40 c 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 i pi n [ma] v pi n [ v ] 0 1 2 3 4 5 6 7 8 9 10 8 5 c 25 c -40 c 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 i pi n [ma] v pi n [ v ] 0 1 2 3 4 5 6 7 8 9 10
78 8134i?avr?12/10 xmega d3 31.7 pin thresholds and hysteresis figure 31-27. i/o pin input threshold voltage vs. v cc v ih - i/o pin read as ?1? figure 31-28. i/o pin input threshold voltage vs. v cc v il - i/o pin read as ?0? 8 5 c 25 c -40 c 0 0.5 1 1.5 2 2.5 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ] 8 5 c 25 c -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ]
79 8134i?avr?12/10 xmega d3 figure 31-29. i/o pin input hysteresis vs. v cc figure 31-30. reset input threshold voltage vs. v cc v ih - i/o pin read as ?1? 8 5 c 25 c -40 c 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ] 8 5 c 25 c -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ]
80 8134i?avr?12/10 xmega d3 figure 31-31. reset input threshold voltage vs. v cc v il - i/o pin read as ?0? 31.8 bod thresholds figure 31-32. bod thresholds vs. temperature bod level = 1.6v 8 5 c 25 c -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ] rising v cc falling v cc 1.61 1.62 1.63 1.64 1.65 1.66 1.67 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] v bot [ v ]
81 8134i?avr?12/10 xmega d3 figure 31-33. bod thresholds vs. temperature bod level = 2.9v 31.9 oscillators and wake-up time 31.9.1 internal 32.768 khz oscillator figure 31-34. internal 32.768 khz oscilla tor calibration step size t = -40 to 85 c, v cc = 3v rising v cc falling v cc 2.9 2.92 2.94 2.96 2.9 8 3 3.02 3.04 3.06 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] v bot [ v ] 032649612 8 160 192 224 256 rc32kcal[7..0] 0.05 % 0.20 % 0.35 % 0.50 % 0.65 % 0. 8 0 % step size: f [khz]
82 8134i?avr?12/10 xmega d3 31.9.2 internal 2 mhz oscillator figure 31-35. internal 2 mhz oscillator ca la calibration step size t = -40 to 85 c, v cc = 3v figure 31-36. internal 2 mhz oscillator ca lb calibration step size t = -40 to 85 c, v cc = 3v -0.30 % -0.20 % -0.10 % 0.00 % 0.10 % 0.20 % 0.30 % 0.40 % 0.50 % 016324 8 64 8 09611212 8 dfllrc2mcala step size: f [mhz] 0.00 % 0.50 % 1.00 % 1.50 % 2.00 % 2.50 % 3.00 % 0 8 16 24 32 40 4 8 56 64 dfllrc2mcalb step size: f [mhz]
83 8134i?avr?12/10 xmega d3 31.9.3 internal 32 mhz oscillator figure 31-37. internal 32 mhz oscillator cala calibration step size t = -40 to 85 c, v cc = 3v figure 31-38. internal 32 mhz oscillator calb calibration step size t = -40 to 85 c, v cc = 3v -0.20 % -0.10 % 0.00 % 0.10 % 0.20 % 0.30 % 0.40 % 0.50 % 0.60 % 016324 8 64 8 0 96 112 12 8 dfllrc32mcala step size: f [mhz] 0.00 % 0.50 % 1.00 % 1.50 % 2.00 % 2.50 % 3.00 % 0 8 16 24 32 40 4 8 56 64 dfllrc32mcalb step size: f [mhz]
84 8134i?avr?12/10 xmega d3 31.10 module current consumption figure 31-39. ac current consumption vs. vcc low-power mode figure 31-40. power-up current consumption vs. vcc 8 5 c 25 c -40 c 0 20 40 60 8 0 100 120 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] mod u le c u rrent cons u mption [ u a] 8 5 c 25 c -40 c 0 100 200 300 400 500 600 700 0.4 0.6 0. 8 1 1.2 1.4 1.6 v cc [ v ] i cc [ u a]
85 8134i?avr?12/10 xmega d3 31.11 reset pulsewidth figure 31-41. minimum reset pulse w idth vs. vcc 31.12 pdi speed figure 31-42. pdi speed vs. vcc 8 5 c 25 c -40 c 0 20 40 60 8 0 100 120 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] t rst [ns] 25 c 0 5 10 15 20 25 30 35 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] f max [mhz]
86 8134i?avr?12/10 xmega d3 32. packaging information 32.1 64a 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 64a, 64-lead, 14 x 14 mm body size, 1.0 mm body thickness, 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) c 64a 2010-10-20 pin 1 identifier 0~7 pin 1 l c a1 a2 a d1 d e e1 e b common dimen s ion s (unit of measure = mm) s ymbol min nom max note notes: 1.this package conforms to jedec reference ms-026, variation aeb. 2. dimensions d1 and e1 do not include mold protrusion. allowable protrusion is 0.25 mm per side. dimensions d1 and e1 are maximum plastic body size dimensions including mold mismatch. 3. lead coplanarity is 0.10 mm maximum. a ? ? 1.20 a1 0.05 ? 0.15 a2 0.95 1.00 1.05 d 15.75 16.00 16.25 d1 13.90 14.00 14.10 note 2 e 15.75 16.00 16.25 e1 13.90 14.00 14.10 note 2 b 0.30 ? 0.45 c 0.09 ? 0.20 l 0.45 ? 0.75 e 0.80 typ
87 8134i?avr?12/10 xmega d3 32.2 64m2 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 64m2 , 64-pad, 9 x 9 x 1.0 mm body, lead pitch 0.50 mm, e 64m2 2010-10-20 common dimen s ion s (unit of measure = mm) s ymbol min nom max note a 0.80 0.90 1.00 a1 ? 0.02 0.05 b 0.18 0.25 0.30 d d2 7.50 7.65 7.80 8.90 9.00 9.10 8.90 9.00 9.10 e e2 7.50 7.65 7.80 e 0.50 bsc l 0.35 0.40 0.45 top view s ide view bottom view d e marked pin# 1 id seating plane a1 c a c 0.08 1 2 3 k 0.20 0.27 0.40 2. dimension and tolerance conform to asmey14.5m-1994. 0.20 ref a3 a3 e2 d2 b e pin #1 corner l pin #1 triangle pin #1 chamfer (c 0.30) option a option b pin #1 notch (0.20 r) option c k k notes: 1. jedec standard mo-220, (saw singulation) fig. 1, vmmd. 7.65 mm exposed pad, micro lead frame package (mlf)
88 8134i?avr?12/10 xmega d3 33. errata 33.1 atxmega256d3, atxmega192d 3, atxmega128d3, atxmega64d3 33.1.1 rev. e ? bandgap voltage input for the acs can not be ch anged when used for both acs simultaneously ? vcc voltage scaler for ac is non-linear ? adc gain stage cannot be used for single conversion ? adc has increased inl error for some operating conditions ? adc gain stage output range is limited to 2.4 v ? adc event on compare match non-functional ? adc propagation delay is not correct when 8x -64x gain is used ? bandgap measurement with the adc is no n-functional when vcc is below 2.7v ? accuracy lost on first th ree samples after switching input to adc gain stage ? configuration of pgm and cwcm not as described in xmega a manual ? pwm is not restarted properly afte r a fault in cycle-by-cycle mode ? bod will be enabled at any reset ? eeprom page buffer always written when nvm data0 is written ? pending full asynchronous pin change interrupts will not wake the device ? pin configuration does not aff ect analog comparator output ? nmi flag for crystal oscillator failure automatically cleared ? crystal start-up time required after powe r-save even if crystal is source for rtc ? rtc counter value not correctly read after sleep ? pending asynchronous rtc-interrupts will not wake up device ? twi transmit collision flag no t cleared on repeated start ? clearing twi stop interrupt flag may lock the bus ? twi start condition at bus timeout will cause transaction to be dropped ? twi data interrupt flag (dif) erroneously read as set ? wdr instruction inside closed window will not issue reset ? twie is not available 1. bandgap voltage input for the acs cannot be changed when used for both acs simultaneously if the bandgap voltage is selected as input for one analog comparator (ac) and then selected/deselected as input for another ac, the first comparator will be affected for up to 1 s and could potentially give a wrong comparison result. problem fix/workaround if the bandgap is required for both acs simultaneously, configure the input selection for both acs before enabling any of them. 2. vcc voltage scaler for ac is non-linear the 6-bit vcc voltage scaler in the analog comparators is non-linear.
89 8134i?avr?12/10 xmega d3 figure 33-1. analog comparator voltage scaler vs. scalefac t = 25c problem fix/workaround use external voltage input for the analog comparator if accurate voltage levels are needed 3. adc gain stage cannot be used for single conversion the adc gain stage will no t output correct result for singl e conversion that is triggered and started from software or event system. problem fix/workaround w hen the gain stage is used, the adc must be set in free running mode for correct results. 4. adc has increased inl error for some operating conditions some adc configurations or operating co ndition will result in increased inl error. in signed mode inl is increased to: ? 6lsb for sample rates above 130ksps, and up to 8lsb for 200ksps sample rate. ? 6lsb for reference voltage below 1.1v when vcc is above 3.0v. ? 20lsb for ambient temperature below 0 degree c and reference voltage below 1.3v. in unsigned mode, the inl error cannot be guaranteed, and this mode should not be used. problem fix/workaround none, avoid using the adc in the above configurations in order to prevent increased inl error. use the adc in signed mode also for single ended measurements. 5. adc gain stage output range is limited to 2.4 v the amplified out put of the adc gain stage will never go above 2.4 v, hence the differential input will only give corr ect output when below 2.4 v/gain. for the ava ilable gain settings, this gives a differential input range of: 3.3 v 2.7 v 1. 8 v 0 0.5 1 1.5 2 2.5 3 3.5 0 5 10 15 20 25 30 35 40 45 50 55 60 65 scalefac v scale [ v ]
90 8134i?avr?12/10 xmega d3 problem fix/workaround keep the amplified voltage output from the adc gain stage below 2.4 v in order to get a cor- rect result, or keep adc voltage reference below 2.4 v. 6. adc event on compare match non-functional adc signalling event will be given at every conversion complete even if interr upt mode (int- mode) is set to belo w or above. problem fix/workaround enable and use interrupt on compare match when using the compare function. 7. adc propagation delay is not correct when 8x -64x gain is used the propagation dela y will increase by only one adc cloc k cycle for 8x and 16x gain setting, and 32x and 64x gain settings. problem fix/workaround none 8. bandgap measurement with the adc is non-functional when vcc is below 2.7v the adc can not be used to do bandgap measurements when vcc is below 2.7v. problem fix/workaround none. 9. accuracy lost on first three samples after switching input to adc gain stage due to memory effect in the adc gain stage, the first three samples after changing input channel must be disregarded to achieve 12-bit accuracy. problem fix/workaround run three adc conversions and discard these results after changing input channels to adc gain stage. 10. configuration of pgm and cwcm not as described in xmega a manual enabling common w aveform channel mode will enable pattern generation mode (pgm), but not common w aveform channel mode. enabling pattern generation mode (pgm) and not common w aveform channel mode (c w cm) will enable both pattern ge neration mode and common w aveform channel mode. ? 1x gain: 2.4 v ? 2x gain: 1.2 v ? 4x gain: 0.6 v ? 8x gain: 300 mv ? 16x gain: 150 mv ? 32x gain: 75 mv ? 64x gain: 38 mv
91 8134i?avr?12/10 xmega d3 problem fix/workaround 11. pwm is not restarted properly after a fault in cycle-by-cycle mode w hen the a w ex fault restore mode is set to cycle- by-cycle, the waveform output will not return to normal operation at first update after fault condition is no longer present. problem fix/workaround do a write to any a w ex i/o register to re-enable the output. 12. bod will be enabled after any reset if any reset source go es active, the bod will be enabled and keep the device in reset if the vcc voltage is below the prog rammed bod level. during powe r-on reset, reset will not be released until vcc is above the programmed bod level even if the bod is disabled. problem fix/workaround do not set the bod level higher than vcc even if the bod is not used. 13. eeprom page buffer always written when nvm data0 is written if the eeprom is memory mapp ed, writing to nvm data0 will corrupt data in the eeprom page buffer. problem fix/workaround before writing to nvm data0, for exampl e when doing software crc or flash page buffer write, check if eeprom page buff er active loading flag (eeloa d) is set. do not write nvm data0 when eeload is set. 14. pending full asynchronous pin change interrupts will not wake the device any full asynchronous pin-change interrupt from pin 2, on any port, that is pending when the sleep instruction is executed, will be ignor ed until the device is woken from another source or the source triggers again. this applies w hen entering all sleep modes where the system clock is stopped. problem fix/workaround none. 15. pin configuration does not affect analog comparator output the output/pull and inverted pin configuration does not affect the analog comparator output. problem fix/workaround none for output/pull configuration. for inverted i/o, configure the analog comparator to give an inverted result (i.e. connect positive input to the negative ac input and vice versa), or use and external inverter to change polarity of analog comparator output. table 33-1. configure p w m and c w cm according to this table: pgm cwcm description 0 0 pgm and c w cm disabled 0 1 pgm enabled 1 0 pgm and c w cm enabled 1 1 pgm enabled
92 8134i?avr?12/10 xmega d3 16. nmi flag for crystal oscillator failure automatically cleared nmi flag for crystal oscillator failure (xoscf dif) will be automatically cleared when exe- cuting the nmi interrupt handler. problem fix/workaround this device revision has only one nmi interrupt source, so checking the interrupt source in software is not required. 17. crystal start-up time required after power-save even if crystal is source for rtc even if 32.768 khz crystal is used for rtc duri ng sleep, the clock fr om the crystal will not be ready for the system before th e specified start-up time. see "xoscsel[3:0]: crystal oscilla- tor selection" in xmega a manual. if bod is us ed in active mode, the bod will be on during this period (0.5s). problem fix/workaround if faster start-up is required , go to sleep with internal oscillator as system clock. 18. rtc counter value not correctly read after sleep if the rtc is set to wake up the device on rt c overflow and bit 0 of rtc cnt is identical to bit 0 of rtc per as the device is entering sleep, the value in the rtc count register can not be read correctly within the first prescaled rtc clock cycle after wakeup. the value read will be the same as the value in the register when entering sleep. the same applies if rtc compare match is used as wake-up source. problem fix/workaround w ait at least one prescaled rtc clock cycle before reading the rtc cnt value. 19. pending asynchronous rtc-inte rrupts will not wa ke up device asynchronous interrupts from the real-time-counter that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. problem fix/workaround none. 20. twi transmit collision flag not cleared on repeated start the t w i transmit collision flag should be automatically cleared on start and repeated start, but is only cleared on start. problem fix/workaround clear the flag in software after address interrupt. 21. clearing twi stop interrupt flag may lock the bus if software clears the stop interrupt flag (apif) on the same peripheral clock cycle as the hardware sets this flag due to a new address received, clkhold is not cleared and the scl line is not released. this will lock the bus. problem fix/workaround check if the bus state is idle. if this is the case, it is safe to clear apif. if the bus state is not idle, wait for the scl pin to be low before clearing apif. code: /* only clear the interrupt flag if within a "safe zone". */ while ( /* bus not idle: */
93 8134i?avr?12/10 xmega d3 ((comms_twi.master.status & twi_master_busstate_gm) != twi_master_busstate_idle_gc)) && /* scl not held by slave: */ !(comms_twi.slave.status & twi_slave_clkhold_bm) ) { /* ensure that the scl line is low */ if ( !(comms_port.in & pin1_bm) ) if ( !(comms_port.in & pin1_bm) ) break; } /* check for an pending address match interrupt */ if ( !(comms_twi.slave.status & twi_slave_clkhold_bm) ) { /* safely clear interrupt flag */ comms_twi.slave.status |= (uint8_t)twi_slave_apif_bm; } 22. twi start condition at bus timeout will cause transaction to be dropped if bus timeout is enabled and a timeout occurs on the same peripheral clock cycle as a start is detected, the tr ansaction will be dropped. problem fix/workaround none. 23. twi data interrupt flag erroneously read as set w hen issuing the t w i slave response command cmd=0b11, it takes 1 peripheral clock cycle to clear the data interrupt flag (dif). a read of dif directly after issuing the command will show the dif still set. problem fix/workaround add one nop instruction before checking dif. 24. wdr instruction inside closed window will not issue reset w hen a w dr instruction is execute within one ulp clock cycle after updating the window control register, the counter can be cleared without giving a system reset. problem fix/workaround w ait at least one ulp clock cycle before executing a w dr instruction. 25. twie is not available the t w i module on porte, t w ie is not available problem fix/workaround use the identical t w i module on portc, t w ic instead.
94 8134i?avr?12/10 xmega d3 33.1.2 rev. b ? bandgap voltage input for the acs can not be ch anged when used for both acs simultaneously ? vcc voltage scaler for ac is non-linear ? adc gain stage cannot be used for single conversion ? adc has increased inl error for some operating conditions ? adc gain stage output range is limited to 2.4 v ? adc event on compare match non-functional ? adc propagation delay is not correct when 8x -64x gain is used ? bandgap measurement with the adc is no n-functional when vcc is below 2.7v ? accuracy lost on first th ree samples after switching input to adc gain stage ? configuration of pgm and cwcm not as described in xmega a manual ? pwm is not restarted properly afte r a fault in cycle-by-cycle mode ? bod will be enabled at any reset ? eeprom page buffer always written when nvm data0 is written ? pending full asynchronous pin change interrupts will not wake the device ? pin configuration does not aff ect analog comparator output ? nmi flag for crystal oscillator failure automatically cleared ? writing eeprom or flash while reading any of them will not work ? crystal start-up time required after powe r-save even if crystal is source for rtc ? rtc counter value not correctly read after sleep ? pending asynchronous rtc-interrupts will not wake up device ? twi transmit collision flag no t cleared on repeated start ? clearing twi stop interrupt flag may lock the bus ? twi start condition at bus timeout will cause transaction to be dropped ? twi data interrupt flag (dif) erroneously read as set ? wdr instruction inside closed window will not issue reset ? twie is not available 1. bandgap voltage input for the acs cannot be changed when used for both acs simultaneously if the bandgap voltage is selected as input for one analog comparator (ac) and then selected/deselected as input for another ac, the first comparator will be affected for up to 1 s and could potentially give a wrong comparison result. problem fix/workaround if the bandgap is required for both acs simultaneously, configure the input selection for both acs before enabling any of them. 2. vcc voltage scaler for ac is non-linear the 6-bit vcc voltage scaler in the analog comparators is non-linear.
95 8134i?avr?12/10 xmega d3 figure 33-2. analog comparator voltage scaler vs. scalefac t = 25c problem fix/workaround use external voltage input for the analog comparator if accurate voltage levels are needed 3. adc gain stage cannot be used for single conversion the adc gain stage will no t output correct result for singl e conversion that is triggered and started from software or event system. problem fix/workaround w hen the gain stage is used, the adc must be set in free running mode for correct results. 4. adc has increased inl error for some operating conditions some adc configurations or operating co ndition will result in increased inl error. in signed mode inl is increased to: ? 6lsb for sample rates above 130ksps, and up to 8lsb for 200ksps sample rate. ? 6lsb for reference voltage below 1.1v when vcc is above 3.0v. ? 20lsb for ambient temperature below 0 degree c and reference voltage below 1.3v. in unsigned mode, the inl error cannot be guaranteed, and this mode should not be used. problem fix/workaround none, avoid using the adc in the above configurations in order to prevent increased inl error. use the adc in signed mode also for single ended measurements. 5. adc gain stage output range is limited to 2.4 v the amplified out put of the adc gain stage will never go above 2.4 v, hence the differential input will only give corr ect output when below 2.4 v/gain. for the ava ilable gain settings, this gives a differential input range of: 3.3 v 2.7 v 1. 8 v 0 0.5 1 1.5 2 2.5 3 3.5 0 5 10 15 20 25 30 35 40 45 50 55 60 65 scalefac v scale [ v ]
96 8134i?avr?12/10 xmega d3 problem fix/workaround keep the amplified voltage output from the adc gain stage below 2.4 v in order to get a cor- rect result, or keep adc voltage reference below 2.4 v. 6. adc event on compare match non-functional adc signalling event will be given at every conversion complete even if interr upt mode (int- mode) is set to belo w or above. problem fix/workaround enable and use interrupt on compare match when using the compare function. 7. adc propagation delay is not correct when 8x -64x gain is used the propagation dela y will increase by only one adc cloc k cycle for 8x and 16x gain setting, and 32x and 64x gain settings. problem fix/workaround none 8. bandgap measurement with the adc is non-functional when vcc is below 2.7v the adc can not be used to do bandgap measurements when vcc is below 2.7v. problem fix/workaround none. 9. accuracy lost on first three samples after switching input to adc gain stage due to memory effect in the adc gain stage, the first three samples after changing input channel must be disregarded to achieve 12-bit accuracy. problem fix/workaround run three adc conversions and discard these results after changing input channels to adc gain stage. 10. configuration of pgm and cwcm not as described in xmega a manual enabling common w aveform channel mode will enable pattern generation mode (pgm), but not common w aveform channel mode. enabling pattern generation mode (pgm) and not common w aveform channel mode (c w cm) will enable both pattern ge neration mode and common w aveform channel mode. ? 1x gain: 2.4 v ? 2x gain: 1.2 v ? 4x gain: 0.6 v ? 8x gain: 300 mv ? 16x gain: 150 mv ? 32x gain: 75 mv ? 64x gain: 38 mv
97 8134i?avr?12/10 xmega d3 problem fix/workaround 11. pwm is not restarted properly after a fault in cycle-by-cycle mode w hen the a w ex fault restore mode is set to cycle- by-cycle, the waveform output will not return to normal operation at first update after fault condition is no longer present. problem fix/workaround do a write to any a w ex i/o register to re-enable the output. 12. bod will be enabled after any reset if any reset source go es active, the bod will be enabled and keep the device in reset if the vcc voltage is below the prog rammed bod level. during powe r-on reset, reset will not be released until vcc is above the programmed bod level even if the bod is disabled. problem fix/workaround do not set the bod level higher than vcc even if the bod is not used. 13. eeprom page buffer always written when nvm data0 is written if the eeprom is memory mapp ed, writing to nvm data0 will corrupt data in the eeprom page buffer. problem fix/workaround before writing to nvm data0, for exampl e when doing software crc or flash page buffer write, check if eeprom page buff er active loading flag (eeloa d) is set. do not write nvm data0 when eeload is set. 14. pending full asynchronous pin change interrupts will not wake the device any full asynchronous pin-change interrupt from pin 2, on any port, that is pending when the sleep instruction is executed, will be ignor ed until the device is woken from another source or the source triggers again. this applies w hen entering all sleep modes where the system clock is stopped. problem fix/workaround none. 15. pin configuration does not affect analog comparator output the output/pull and inverted pin configuration does not affect the analog comparator output. problem fix/workaround none for output/pull configuration. for inverted i/o, configure the analog comparator to give an inverted result (i.e. connect positive input to the negative ac input and vice versa), or use and external inverter to change polarity of analog comparator output. table 33-2. configure p w m and c w cm according to this table: pgm cwcm description 0 0 pgm and c w cm disabled 0 1 pgm enabled 1 0 pgm and c w cm enabled 1 1 pgm enabled
98 8134i?avr?12/10 xmega d3 16. nmi flag for crystal oscillator failure automatically cleared nmi flag for crystal oscillator failure (xoscf dif) will be automatically cleared when exe- cuting the nmi interrupt handler. problem fix/workaround this device revision has only one nmi interrupt source, so checking the interrupt source in software is not required. 17. writing eeprom or flash while r eading any of them will not work the eeprom and flash cannot be written while reading eeprom or flash, or while exe- cuting code in active mode. problem fix/workaround enter idle sleep mode within 2.5 s (five 2 mh z clock cycles and 80 32 mhz clock cycles) after starting an eeprom or flash write operation. w ake-up source must either be eeprom ready or nvm ready interrupt. alternatively set up a timer/counter to give an overflow interrupt 7 ms after the erase or write operation has started, or 13 ms after atomic erase-and-write operation has started, and then enter idle sleep mode. 18. crystal start-up time required after power-save even if crystal is source for rtc even if 32.768 khz crystal is used for rtc duri ng sleep, the clock fr om the crystal will not be ready for the system before th e specified start-up time. see "xoscsel[3:0]: crystal oscilla- tor selection" in xmega a manual. if bod is us ed in active mode, the bod will be on during this period (0.5s). problem fix/workaround if faster start-up is required , go to sleep with internal oscillator as system clock. 19. rtc counter value not correctly read after sleep if the rtc is set to wake up the device on rt c overflow and bit 0 of rtc cnt is identical to bit 0 of rtc per as the device is entering sleep, the value in the rtc count register can not be read correctly within the first prescaled rtc clock cycle after wakeup. the value read will be the same as the value in the register when entering sleep. the same applies if rtc compare match is used as wake-up source. problem fix/workaround w ait at least one prescaled rtc clock cycle before reading the rtc cnt value. 20. pending asynchronous rtc-inte rrupts will not wa ke up device asynchronous interrupts from the real-time-counter that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. problem fix/workaround none. 21. twi transmit collision flag not cleared on repeated start the t w i transmit collision flag should be automatically cleared on start and repeated start, but is only cleared on start. problem fix/workaround clear the flag in software after address interrupt.
99 8134i?avr?12/10 xmega d3 22. clearing twi stop interrupt flag may lock the bus if software clears the stop interrupt flag (apif) on the same peripheral clock cycle as the hardware sets this flag due to a new address received, clkhold is not cleared and the scl line is not released. this will lock the bus. problem fix/workaround check if the bus state is idle. if this is the case, it is safe to clear apif. if the bus state is not idle, wait for the scl pin to be low before clearing apif. code: /* only clear the interrupt flag if within a "safe zone". */ while ( /* bus not idle: */ ((comms_twi.master.status & twi_master_busstate_gm) != twi_master_busstate_idle_gc)) && /* scl not held by slave: */ !(comms_twi.slave.status & twi_slave_clkhold_bm) ) { /* ensure that the scl line is low */ if ( !(comms_port.in & pin1_bm) ) if ( !(comms_port.in & pin1_bm) ) break; } /* check for an pending address match interrupt */ if ( !(comms_twi.slave.status & twi_slave_clkhold_bm) ) { /* safely clear interrupt flag */ comms_twi.slave.status |= (uint8_t)twi_slave_apif_bm; } 23. twi start condition at bus timeout will cause transaction to be dropped if bus timeout is enabled and a timeout occurs on the same peripheral clock cycle as a start is detected, the tr ansaction will be dropped. problem fix/workaround none. 24. twi data interrupt flag erroneously read as set w hen issuing the t w i slave response command cmd=0b11, it takes 1 peripheral clock cycle to clear the data interrupt flag (dif). a read of dif directly after issuing the command will show the dif still set. problem fix/workaround add one nop instruction before checking dif. 25. wdr instruction inside closed window will not issue reset w hen a w dr instruction is execute within one ulp clock cycle after updating the window control register, the counter can be cleared without giving a system reset. problem fix/workaround w ait at least one ulp clock cycle before executing a w dr instruction.
100 8134i?avr?12/10 xmega d3 26. twie is not available the t w i module on porte, t w ie is not available problem fix/workaround use the identical t w i module on portc, t w ic instead. 33.1.3 all rev. a not sampled.
101 8134i?avr?12/10 xmega d3 34. datasheet revision history please note that the referring page numbers in th is section are referred to this document. the referring revisions in this section are referring to the document revision. 34.1 8134i ? 12/10 34.2 8134h ? 09/10 34.3 8134g ? 08/10 34.4 8134f ? 02/10 1. datasheet status changed to complete: preliminary removed from front page. 2. updated all tables in the ?electrical characteristics? . 3. replaced table 30-11 on page 62 4. replaced table 30-17 on page 63 and added the figure ?tosc input capacitance? on page 64 5. added errata ?rev. e? on page 88 . 6. updated errata for adc (adc has increased inl error for some operating conditions). 7 updated errata ?rev. b? on page 94 with t w ie (t w ie is not available). 8. updated the last page by atmel new brand style guide. 1. updated ?errata? on page 88 . 1. updated the footnote 3 of ?ordering information? on page 2 . 2. all references to crc removed. updated figure 3-1 on page 5 . 3. updated ?features? on page 26 . event channel 0 output on port pin 7. 4. updated ?dc characteristics? on page 56 by adding icc for flash/eeprom programming. 5. added avcc in ?adc characteristics? on page 60 . 6. updated start up time in ?adc characteristics? on page 60 . 7. updated and fixed typo in ?errata? section. 1. added ?pdi speed? on page 85 .
102 8134i?avr?12/10 xmega d3 34.5 8134e ? 01/10 34.6 8134d ? 11/09 34.7 8134c ? 10/09 34.8 8134b ? 08/09 1. updated the device pin-out figure 2-1 on page 3 . pdi_clk and pdi_data renamed only pdi. 2. updated ?adc - 12-bit analog to digital converter? on page 39 . 3. updated figure 23-1 on page 40 . 4. updated ?alternate pin function description? on page 46 . 5. updated ?alternate pin functions? on page 48 . 6. updated ?timer/counter and a w ex functions? on page 46 . 7. added table 30-17 on page 63 . 8. added table 30-18 on page 64 . 9. changed internal oscillator speed to ?oscillators and w ake-up time? on page 81 . 10. updated ?errata? on page 88 . 1. added table 30-3 on page 59 , endurance and data retention. 2. updated table 30-10 on page 62 , input hysteresis is in v and not in mv. 3. added ?errata? on page 88 . 4. editing updates. 1. updated ?features? on page 1 with two two- w ire interfaces. 2. updated ?block diagram and pinout? on page 3 . 3. updated ?overview? on page 4 . 4. updated ?xmega d3 block diagram? on page 5 . 5. updated table 13-1 on page 24 . 6. updated ?overview? on page 35 . 7. updated table 27-5 on page 49 . 8. updated ?peripheral module address map? on page 51 . 1. added ?electrical characteri stics? on page 56 . 2. added ?typical characteristics? on page 65 .
103 8134i?avr?12/10 xmega d3 34.9 8134a ? 03/09 1. initial revision.
i 8134i?avr?12/10 xmega d3 table of contents features ................ ................ .............. ............... .............. .............. ............ 1 typical applications .............. .............. .............. .............. .............. .......... 1 1 ordering information .......... .............. ............... .............. .............. ............ 2 2 pinout/ block diagram ........... .............. .............. .............. .............. .......... 3 3 overview ............ ................ ................ ............... .............. .............. ............ 4 3.1block diagram ...........................................................................................................5 4 resources .............. .............. .............. ............... .............. .............. ............ 6 4.1recommended reading .............................................................................................6 5 disclaimer .............. .............. .............. ............... .............. .............. ............ 6 6 avr cpu ............ ................ ................ ............... .............. .............. ............ 7 6.1features ................................................................................................................... .7 6.2overview ................................................................................................................... 7 6.3register file .............................................................................................................. 8 6.4alu - arithmetic logic unit .......................................................................................8 6.5program flow ............................................................................................................8 7 memories ............... .............. .............. ............... .............. .............. ............ 9 7.1features ................................................................................................................... .9 7.2overview ................................................................................................................... 9 7.3in-system programmable flash program memory ...................................................9 7.4data memory ...........................................................................................................11 7.5production signature row .......................................................................................13 7.6user signature row ................................................................................................13 7.7flash and eeprom page size ...............................................................................14 8 event system ........ .............. .............. ............... .............. .............. .......... 15 8.1features ..................................................................................................................1 5 8.2overview .................................................................................................................15 9 system clock and clock options ................ ................. .............. .......... 17 9.1features ..................................................................................................................1 7 9.2overview .................................................................................................................17 9.3clock options ..........................................................................................................18 10 power management and sleep modes ........ ................. .............. .......... 20
ii 8134i?avr?12/10 xmega d3 10.1features ................................................................................................................20 10.2overview ...............................................................................................................20 10.3sleep modes .........................................................................................................20 11 system control and reset .... .............. .............. .............. .............. ........ 22 11.1features ................................................................................................................22 11.2resetting the avr .................................................................................................22 11.3reset sources .......................................................................................................22 12 wdt - watchdog timer ......... .............. .............. .............. .............. ........ 23 12.1features ................................................................................................................23 12.2overview ...............................................................................................................23 13 pmic - programmable multi-l evel interrupt controller ............. .......... 24 13.1features ................................................................................................................24 13.2overview ...............................................................................................................24 13.3interrupt vectors ....................................................................................................24 14 i/o ports ............... ................ .............. ............... .............. .............. .......... 26 14.1features ................................................................................................................26 14.2overview ...............................................................................................................26 14.3i/o configuration ....................................................................................................26 14.4input sensing .........................................................................................................29 14.5port interrupt .........................................................................................................29 14.6alternate port functions ........................................................................................29 15 t/c - 16-bits timer/counter with pwm ........... .............. .............. .......... 30 15.1features ................................................................................................................30 15.2overview ...............................................................................................................30 16 awex - advanced waveform extension .... ................. .............. .......... 32 16.1features ................................................................................................................32 16.2overview ...............................................................................................................32 17 hi-res - high resolution extension .......... ................ ................. .......... 33 17.1features ................................................................................................................33 17.2overview ...............................................................................................................33 18 rtc - real-time counter ... .............. ............... .............. .............. .......... 34 18.1features ................................................................................................................34 18.2overview ...............................................................................................................34
iii 8134i?avr?12/10 xmega d3 19 twi - two wire interface .... .............. ............... .............. .............. .......... 35 19.1features ................................................................................................................35 19.2overview ...............................................................................................................35 20 spi - serial peripher al interface ............ .............. .............. ............ ........ 36 20.1features ................................................................................................................36 20.2overview ...............................................................................................................36 21 usart ............. ................. ................ ................. .............. .............. .......... 37 21.1features ................................................................................................................37 21.2overview ...............................................................................................................37 22 ircom - ir communication module .............. .............. .............. .......... 38 22.1features ................................................................................................................38 22.2overview ...............................................................................................................38 23 adc - 12-bit analog to digi tal converter ....... .............. .............. .......... 39 23.1features ................................................................................................................39 23.2overview ...............................................................................................................39 24 ac - analog comparator .... .............. ............... .............. .............. .......... 41 24.1features ................................................................................................................41 24.2overview ...............................................................................................................41 24.3input selection .......................................................................................................43 24.4 w indow function ...................................................................................................43 25 ocd - on-chip debug ......... .............. ............... .............. .............. .......... 44 25.1features ................................................................................................................44 25.2overview ...............................................................................................................44 26 pdi - program and debug interface .......... ................ ................. .......... 45 26.1features ................................................................................................................45 26.2overview ...............................................................................................................45 27 pinout and pin functions ................. ............... .............. .............. .......... 46 27.1alternate pin function description ........................................................................46 27.2alternate pin functions .........................................................................................48 28 peripheral module addr ess map ............... ................ ................. .......... 51 29 instruction set summary ... .............. ............... .............. .............. .......... 52 30 electrical characteristics ... .............. ............... .............. .............. .......... 56
iv 8134i?avr?12/10 xmega d3 30.1absolute maximum ratings* .................................................................................56 30.2dc characteristics ................................................................................................56 30.3operating voltage and frequency ........................................................................58 30.4flash and eeprom memory characterist ics ................ ................ ............. ..........59 30.5adc characteristics ..............................................................................................60 30.6analog comparator characteristics .......................................................................61 30.7bandgap characteristics .......................................................................................61 30.8brownout detection characteristics ......................................................................61 30.9pad characteristics ..............................................................................................62 30.10por characteristics ............................................................................................62 30.11reset characteristics ..........................................................................................62 30.12oscillator characteristics ....................................................................................63 31 typical characteristics ....... .............. ............... .............. .............. .......... 65 31.1active supply current ............................................................................................65 31.2idle supply current ................................................................................................68 31.3power-down supply current .................................................................................72 31.4power-save supply current ..................................................................................73 31.5pin pull-up .............................................................................................................73 31.6pin output voltage vs. sink/source current .........................................................75 31.7pin thresholds and hysteresis ..............................................................................78 31.8bod thresholds .....................................................................................................80 31.9oscillators and w ake-up time ..............................................................................81 31.10module current consumption ...............................................................................84 31.11reset pulsewidth .................................................................................................85 31.12pdi speed ...........................................................................................................85 32 packaging information .......... .............. .............. .............. .............. ........ 86 32.164a ....................................................................................................................... .86 32.264m2 .....................................................................................................................8 7 33 errata ............. ................ ................. ................ ................. .............. .......... 88 33.1atxmega256d3, ATXMEGA192D3, atxmega128d3, atxmega64d3 ...................88 34 datasheet revision history .. ................ ................. ................ ............. 101 34.18134i ? 12/10 ......................................................................................................101 34.28134h ? 09/10 .....................................................................................................101 34.38134g ? 08/10 .....................................................................................................101 34.48134f ? 02/10 .....................................................................................................101
34.58134e ? 01/10 .....................................................................................................102 34.68134d ? 11/09 .....................................................................................................102 34.78134c ? 10/09 .....................................................................................................102 34.88134b ? 08/09 .....................................................................................................102 34.98134a ? 03/09 .....................................................................................................103 table of contents.......... ................. ................ ................. ................ ........... i
8134i?avr?12/10 atmel corporation 2325 orchard parkway san jose, ca 95131 usa tel : (+1)(408) 441-0311 fax : (+1)(408) 487-2600 www.atmel.com atmel asia limited unit 1-5 & 16, 19/f bea tower, millennium city 5 418 kwun tong road kwun tong, kowloon hong kong tel : (+852) 2245-6100 fax : (+852) 2722-1369 atmel munich gmbh business campus parkring 4 d-85748 garching b. munich germany tel : (+49) 89-31970-0 fax : (+49) 89-3194621 atmel japan 9f, tonetsu shinkawa bldg. 1-24-8 shinkawa chuo-ku, tokyo 104-0033 japan tel : (+81)(3) 3523-3551 fax : (+81)(3) 3523-7581 ? 2010 atmel corporation. all rights reserved. / rev. corp0xxxx atmel ? , atmel logo and combinations thereof, avr ? , avr ? logo, xmega ? and others are registered trademarks or trademarks of atmel corporation or its subsidiaries. other terms and product names may be trademarks of others. disclaimer: the information in this document is provided in connection wi th atmel products. no license, ex press or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of atmel products. except as set forth in the atmel terms and conditions of sales located on the atmel website, atmel assumes no liability whatsoever and disclaims any express, implied or statutory warranty relating to its pro ducts including, but not limited to, the implied warranty of merchantability, fitness for a particular purp ose, or non-infringement. in no even t shall atmel be liable for any direct, indirect, consequential, punitive, special or incidental damages (including, without limitati on, damages for loss and prof- its, business interruption, or loss of information) arising out of the use or inability to use this document, even if atmel has been advised of the possibility of such damages. atmel makes no representations or warranties with respect to the accuracy or com- pleteness of the contents of th is document and reserves the right to make changes to specifications and product descriptions at any time without notice. atmel does not make any commitment to update the information cont ained herein. unless specifically provided otherwise, atmel pr oducts are not suit- able for, and shall not be used in, automotive applications. atme l products are not intended, authorized, or warranted for use as components in applica- tions intended to support or sustain life.


▲Up To Search▲   

 
Price & Availability of ATXMEGA192D3

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X